home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Hyper / M / MagMaker 1.5.sit / MagMaker Tools B < prev    next >
MacBinary  |  1994-10-20  |  48.9 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: MagMaker Tools B

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Oct 20 19:46:09 1994, modified Thu Oct 20 19:46:09 1994, creator HyperCard, type HyperCard stack, 37280 bytes "MagMaker Tools B" , at 0x9220 12446 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 4d 61 67 4d 61 6b | 65 72 20 54 6f 6f 6c 73 |..MagMak|er Tools|
|00000010| 20 42 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | B......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 00 91 a0 00 | 00 30 9e aa cc b1 c1 aa |........|.0......|
|00000060| cc b1 c1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8f 9d 00 00 |........|........|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 00 91 a0 | 00 00 70 00 00 00 00 00 |........|..p.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a e5 00 00 00 01 |........|........|
|000000b0| 00 00 0b c3 00 00 08 21 | 00 00 00 00 00 00 00 00 |.......!|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 20 80 00 | 02 20 80 00 02 20 80 00 |..... ..|. ... ..|
|000000f0| da 7b a9 0d 00 00 00 00 | 01 96 01 d0 02 ae 03 50 |.{......|.......P|
|00000100| 00 00 00 00 03 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 40 00 00 0c 8e | 01 18 01 80 00 00 00 00 |...@....|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 66 75 6e 63 74 69 6f 6e | 20 74 68 69 73 50 69 63 |function| thisPic|
|00000690| 74 0d 72 65 74 75 72 6e | 20 28 69 74 65 6d 20 31 |t.return| (item 1|
|000006a0| 20 6f 66 20 66 6c 64 20 | 22 50 69 63 74 54 68 69 | of fld |"PictThi|
|000006b0| 73 50 61 67 65 22 29 0d | 65 6e 64 20 74 68 69 73 |sPage").|end this|
|000006c0| 50 69 63 74 0d 0d 6f 6e | 20 6c 6f 63 6b 50 61 67 |Pict..on| lockPag|
|000006d0| 65 0d 73 65 6e 64 20 6d | 6f 75 73 65 55 70 20 74 |e.send m|ouseUp t|
|000006e0| 6f 20 62 67 20 62 74 6e | 20 22 4c 6f 63 6b 50 61 |o bg btn| "LockPa|
|000006f0| 67 65 22 0d 69 66 20 74 | 68 65 20 68 69 67 68 4c |ge".if t|he highL|
|00000700| 69 67 68 74 20 6f 66 20 | 62 67 20 62 74 6e 20 22 |ight of |bg btn "|
|00000710| 4c 6f 63 6b 50 61 67 65 | 22 20 74 68 65 6e 0d 73 |LockPage|" then.s|
|00000720| 65 74 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 6d |et the n|ame of m|
|00000730| 65 6e 75 49 74 65 6d 20 | 31 31 20 6f 66 20 6d 65 |enuItem |11 of me|
|00000740| 6e 75 20 22 4d 61 67 4d | 61 6b 65 72 22 20 74 6f |nu "MagM|aker" to|
|00000750| 20 22 55 6e 6c 6f 63 6b | 20 50 61 67 65 22 0d 65 | "Unlock| Page".e|
|00000760| 6c 73 65 0d 73 65 74 20 | 74 68 65 20 6e 61 6d 65 |lse.set |the name|
|00000770| 20 6f 66 20 6d 65 6e 75 | 49 74 65 6d 20 31 31 20 | of menu|Item 11 |
|00000780| 6f 66 20 6d 65 6e 75 20 | 22 4d 61 67 4d 61 6b 65 |of menu |"MagMake|
|00000790| 72 22 20 74 6f 20 22 4c | 6f 63 6b 20 50 61 67 65 |r" to "L|ock Page|
|000007a0| 22 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 6c 6f 63 |".end if|.end loc|
|000007b0| 6b 50 61 67 65 0d 0d 6f | 6e 20 62 6f 6f 6b 48 65 |kPage..o|n bookHe|
|000007c0| 6c 70 0d 69 66 20 74 6f | 6f 6c 73 53 74 61 63 6b |lp.if to|olsStack|
|000007d0| 28 29 20 74 68 65 6e 20 | 65 78 69 74 20 62 6f 6f |() then |exit boo|
|000007e0| 6b 48 65 6c 70 0d 6c 6f | 63 6b 20 6d 65 73 73 61 |kHelp.lo|ck messa|
|000007f0| 67 65 73 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ges.if t|here is |
|00000800| 61 20 77 69 6e 64 6f 77 | 20 69 74 65 6d 20 31 20 |a window| item 1 |
|00000810| 6f 66 20 66 6c 64 20 22 | 50 69 63 74 54 68 69 73 |of fld "|PictThis|
|00000820| 50 61 67 65 22 20 74 68 | 65 6e 0d 63 6c 6f 73 65 |Page" th|en.close|
|00000830| 20 77 69 6e 64 6f 77 20 | 69 74 65 6d 20 31 20 6f | window |item 1 o|
|00000840| 66 20 66 6c 64 20 22 50 | 69 63 74 54 68 69 73 50 |f fld "P|ictThisP|
|00000850| 61 67 65 22 0d 65 6e 64 | 20 69 66 0d 69 66 20 74 |age".end| if.if t|
|00000860| 68 65 20 6f 70 74 69 6f | 6e 4b 65 79 20 69 73 20 |he optio|nKey is |
|00000870| 6e 6f 74 20 64 6f 77 6e | 20 74 68 65 6e 0d 67 6f |not down| then.go|
|00000880| 20 73 74 61 63 6b 20 22 | 4d 61 67 4d 61 6b 65 72 | stack "|MagMaker|
|00000890| 20 54 6f 6f 6c 73 20 41 | 22 20 69 6e 20 61 20 6e | Tools A|" in a n|
|000008a0| 65 77 20 77 69 6e 64 6f | 77 0d 73 74 6f 70 20 75 |ew windo|w.stop u|
|000008b0| 73 69 6e 67 20 73 74 61 | 63 6b 20 22 4d 61 67 4d |sing sta|ck "MagM|
|000008c0| 61 6b 65 72 20 54 6f 6f | 6c 73 20 41 22 0d 65 6c |aker Too|ls A".el|
|000008d0| 73 65 0d 67 6f 20 73 74 | 61 63 6b 20 22 4d 61 67 |se.go st|ack "Mag|
|000008e0| 4d 61 6b 65 72 20 54 6f | 6f 6c 73 20 42 22 20 69 |Maker To|ols B" i|
|000008f0| 6e 20 61 20 6e 65 77 20 | 77 69 6e 64 6f 77 0d 73 |n a new |window.s|
|00000900| 74 6f 70 20 75 73 69 6e | 67 20 73 74 61 63 6b 20 |top usin|g stack |
|00000910| 22 4d 61 67 4d 61 6b 65 | 72 20 54 6f 6f 6c 73 20 |"MagMake|r Tools |
|00000920| 42 22 0d 65 6e 64 20 69 | 66 0d 75 6e 6c 6f 63 6b |B".end i|f.unlock|
|00000930| 20 6d 65 73 73 61 67 65 | 73 0d 65 6e 64 20 62 6f | message|s.end bo|
|00000940| 6f 6b 48 65 6c 70 0d 0d | 0d 6f 6e 20 6d 6f 75 73 |okHelp..|.on mous|
|00000950| 65 44 6f 77 6e 49 6e 50 | 69 63 74 75 72 65 0d 67 |eDownInP|icture.g|
|00000960| 6c 6f 62 61 6c 20 74 68 | 65 50 69 63 74 4c 6f 63 |lobal th|ePictLoc|
|00000970| 2c 63 68 61 6e 67 65 4c | 6f 63 0d 70 75 74 20 66 |,changeL|oc.put f|
|00000980| 6c 64 20 22 50 69 63 74 | 54 68 69 73 50 61 67 65 |ld "Pict|ThisPage|
|00000990| 22 20 69 6e 74 6f 20 74 | 68 65 50 69 63 74 4c 6f |" into t|hePictLo|
|000009a0| 63 0d 69 66 20 74 68 65 | 20 6f 70 74 69 6f 6e 4b |c.if the| optionK|
|000009b0| 65 79 20 69 73 20 64 6f | 77 6e 20 61 6e 64 20 22 |ey is do|wn and "|
|000009c0| 4d 61 67 4d 61 6b 65 72 | 22 20 69 73 20 69 6e 20 |MagMaker|" is in |
|000009d0| 74 68 65 20 6d 65 6e 75 | 73 20 74 68 65 6e 0d 70 |the menu|s then.p|
|000009e0| 75 74 20 74 68 65 20 72 | 65 63 74 20 6f 66 20 77 |ut the r|ect of w|
|000009f0| 69 6e 64 6f 77 20 28 69 | 74 65 6d 20 31 20 6f 66 |indow (i|tem 1 of|
|00000a00| 20 74 68 65 50 69 63 74 | 4c 6f 63 29 20 69 6e 74 | thePict|Loc) int|
|00000a10| 6f 20 61 64 6a 4c 6f 63 | 0d 70 75 74 20 74 72 75 |o adjLoc|.put tru|
|00000a20| 6e 63 28 28 69 74 65 6d | 20 33 20 6f 66 20 61 64 |nc((item| 3 of ad|
|00000a30| 6a 4c 6f 63 20 2d 20 69 | 74 65 6d 20 31 20 6f 66 |jLoc - i|tem 1 of|
|00000a40| 20 61 64 6a 4c 6f 63 29 | 2f 32 29 20 26 20 22 2c | adjLoc)|/2) & ",|
|00000a50| 22 20 26 20 74 72 75 6e | 63 28 28 69 74 65 6d 20 |" & trun|c((item |
|00000a60| 34 20 6f 66 20 61 64 6a | 4c 6f 63 20 2d 20 69 74 |4 of adj|Loc - it|
|00000a70| 65 6d 20 32 20 6f 66 20 | 61 64 6a 4c 6f 63 29 2f |em 2 of |adjLoc)/|
|00000a80| 32 29 20 69 6e 74 6f 20 | 69 6e 43 65 6e 74 65 72 |2) into |inCenter|
|00000a90| 0d 72 65 70 65 61 74 20 | 75 6e 74 69 6c 20 74 68 |.repeat |until th|
|00000aa0| 65 20 6d 6f 75 73 65 20 | 69 73 20 75 70 0d 73 65 |e mouse |is up.se|
|00000ab0| 74 20 74 68 65 20 6c 6f | 63 20 6f 66 20 77 69 6e |t the lo|c of win|
|00000ac0| 64 6f 77 20 28 69 74 65 | 6d 20 31 20 6f 66 20 74 |dow (ite|m 1 of t|
|00000ad0| 68 65 50 69 63 74 4c 6f | 63 29 20 74 6f 20 28 28 |hePictLo|c) to ((|
|00000ae0| 69 74 65 6d 20 31 20 6f | 66 20 74 68 65 20 6d 6f |item 1 o|f the mo|
|00000af0| 75 73 65 4c 6f 63 20 2d | 20 69 74 65 6d 20 31 20 |useLoc -| item 1 |
|00000b00| 6f 66 20 69 6e 43 65 6e | 74 65 72 29 20 26 20 22 |of inCen|ter) & "|
|00000b10| 2c 22 20 26 20 28 69 74 | 65 6d 20 32 20 6f 66 20 |," & (it|em 2 of |
|00000b20| 74 68 65 20 6d 6f 75 73 | 65 4c 6f 63 20 2d 20 69 |the mous|eLoc - i|
|00000b30| 74 65 6d 20 32 20 6f 66 | 20 69 6e 43 65 6e 74 65 |tem 2 of| inCente|
|00000b40| 72 29 29 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 |r)).end |repeat.p|
|00000b50| 75 74 20 74 72 75 65 20 | 69 6e 74 6f 20 63 68 61 |ut true |into cha|
|00000b60| 6e 67 65 4c 6f 63 0d 65 | 6e 64 20 69 66 0d 65 6e |ngeLoc.e|nd if.en|
|00000b70| 64 20 6d 6f 75 73 65 44 | 6f 77 6e 49 6e 50 69 63 |d mouseD|ownInPic|
|00000b80| 74 75 72 65 0d 0d 6f 6e | 20 6d 6f 75 73 65 55 70 |ture..on| mouseUp|
|00000b90| 49 6e 50 69 63 74 75 72 | 65 0d 67 6c 6f 62 61 6c |InPictur|e.global|
|00000ba0| 20 74 68 65 50 69 63 74 | 4c 6f 63 2c 63 68 61 6e | thePict|Loc,chan|
|00000bb0| 67 65 4c 6f 63 0d 69 66 | 20 63 68 61 6e 67 65 4c |geLoc.if| changeL|
|00000bc0| 6f 63 20 69 73 20 74 72 | 75 65 20 74 68 65 6e 0d |oc is tr|ue then.|
|00000bd0| 70 75 74 20 66 61 6c 73 | 65 20 69 6e 74 6f 20 63 |put fals|e into c|
|00000be0| 68 61 6e 67 65 4c 6f 63 | 0d 70 75 74 20 28 69 74 |hangeLoc|.put (it|
|00000bf0| 65 6d 20 31 20 6f 66 20 | 74 68 65 50 69 63 74 4c |em 1 of |thePictL|
|00000c00| 6f 63 29 20 26 20 22 2c | 22 20 26 20 74 68 65 20 |oc) & ",|" & the |
|00000c10| 6c 6f 63 20 6f 66 20 77 | 69 6e 64 6f 77 20 28 69 |loc of w|indow (i|
|00000c20| 74 65 6d 20 31 20 6f 66 | 20 74 68 65 50 69 63 74 |tem 1 of| thePict|
|00000c30| 4c 6f 63 29 20 69 6e 74 | 6f 20 66 6c 64 20 22 50 |Loc) int|o fld "P|
|00000c40| 69 63 74 54 68 69 73 50 | 61 67 65 22 0d 70 75 74 |ictThisP|age".put|
|00000c50| 20 66 61 6c 73 65 20 69 | 6e 74 6f 20 63 68 61 6e | false i|nto chan|
|00000c60| 67 65 4c 6f 63 0d 73 65 | 6e 64 20 6f 70 65 6e 43 |geLoc.se|nd openC|
|00000c70| 61 72 64 20 74 6f 20 74 | 68 69 73 20 63 64 0d 65 |ard to t|his cd.e|
|00000c80| 6c 73 65 0d 73 65 6e 64 | 20 6d 6f 75 73 65 55 70 |lse.send| mouseUp|
|00000c90| 49 6e 50 69 63 74 75 72 | 65 20 74 6f 20 74 68 69 |InPictur|e to thi|
|00000ca0| 73 20 73 74 61 63 6b 0d | 65 6e 64 20 69 66 0d 65 |s stack.|end if.e|
|00000cb0| 6e 64 20 6d 6f 75 73 65 | 55 70 49 6e 50 69 63 74 |nd mouse|UpInPict|
|00000cc0| 75 72 65 0d 0d 6f 6e 20 | 6e 65 77 50 61 67 65 0d |ure..on |newPage.|
|00000cd0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 64 6f 4d 65 |lock scr|een.doMe|
|00000ce0| 6e 75 20 22 43 6f 70 79 | 20 43 61 72 64 22 0d 64 |nu "Copy| Card".d|
|00000cf0| 6f 4d 65 6e 75 20 22 50 | 61 73 74 65 20 43 61 72 |oMenu "P|aste Car|
|00000d00| 64 22 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |d".put e|mpty int|
|00000d10| 6f 20 66 6c 64 20 22 42 | 6f 64 79 22 0d 69 66 20 |o fld "B|ody".if |
|00000d20| 74 68 65 72 65 20 69 73 | 20 61 20 62 74 6e 20 22 |there is| a btn "|
|00000d30| 50 69 63 74 75 72 65 22 | 20 74 68 65 6e 0d 73 65 |Picture"| then.se|
|00000d40| 6c 65 63 74 20 62 74 6e | 20 22 50 69 63 74 75 72 |lect btn| "Pictur|
|00000d50| 65 22 0d 64 6f 4d 65 6e | 75 20 22 43 75 74 20 42 |e".doMen|u "Cut B|
|00000d60| 75 74 74 6f 6e 22 0d 65 | 6e 64 20 69 66 0d 70 75 |utton".e|nd if.pu|
|00000d70| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 66 6c 64 |t empty |into fld|
|00000d80| 20 22 50 69 63 74 54 68 | 69 73 50 61 67 65 22 0d | "PictTh|isPage".|
|00000d90| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 66 |put empt|y into f|
|00000da0| 6c 64 20 22 4e 6f 74 65 | 50 61 64 22 0d 63 68 6f |ld "Note|Pad".cho|
|00000db0| 6f 73 65 20 74 68 65 20 | 62 72 6f 77 73 65 20 74 |ose the |browse t|
|00000dc0| 6f 6f 6c 0d 65 6e 64 20 | 6e 65 77 50 61 67 65 0d |ool.end |newPage.|
|00000dd0| 0d 66 75 6e 63 74 69 6f | 6e 20 6c 69 73 74 49 6e |.functio|n listIn|
|00000de0| 73 74 61 6c 6c 65 64 46 | 6f 6e 74 73 0d 70 75 74 |stalledF|onts.put|
|00000df0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 66 6f 6e 74 | empty i|nto font|
|00000e00| 4c 69 73 74 0d 69 66 20 | 46 6f 6e 74 45 78 69 73 |List.if |FontExis|
|00000e10| 74 73 28 22 48 65 6c 76 | 65 74 69 63 61 22 29 20 |ts("Helv|etica") |
|00000e20| 69 73 20 74 72 75 65 20 | 74 68 65 6e 20 70 75 74 |is true |then put|
|00000e30| 20 22 48 65 6c 76 65 74 | 69 63 61 22 20 26 20 72 | "Helvet|ica" & r|
|00000e40| 65 74 75 72 6e 20 61 66 | 74 65 72 20 66 6f 6e 74 |eturn af|ter font|
|00000e50| 4c 69 73 74 0d 69 66 20 | 46 6f 6e 74 45 78 69 73 |List.if |FontExis|
|00000e60| 74 73 28 22 4e 65 77 20 | 59 6f 72 6b 22 29 20 69 |ts("New |York") i|
|00000e70| 73 20 74 72 75 65 20 74 | 68 65 6e 20 70 75 74 20 |s true t|hen put |
|00000e80| 22 4e 65 77 20 59 6f 72 | 6b 22 20 26 20 72 65 74 |"New Yor|k" & ret|
|00000e90| 75 72 6e 20 61 66 74 65 | 72 20 66 6f 6e 74 4c 69 |urn afte|r fontLi|
|00000ea0| 73 74 0d 69 66 20 46 6f | 6e 74 45 78 69 73 74 73 |st.if Fo|ntExists|
|00000eb0| 28 22 50 61 6c 61 74 69 | 6e 6f 22 29 20 69 73 20 |("Palati|no") is |
|00000ec0| 74 72 75 65 20 74 68 65 | 6e 20 70 75 74 20 22 50 |true the|n put "P|
|00000ed0| 61 6c 61 74 69 6e 6f 22 | 20 26 20 72 65 74 75 72 |alatino"| & retur|
|00000ee0| 6e 20 61 66 74 65 72 20 | 66 6f 6e 74 4c 69 73 74 |n after |fontList|
|00000ef0| 0d 69 66 20 46 6f 6e 74 | 45 78 69 73 74 73 28 22 |.if Font|Exists("|
|00000f00| 54 69 6d 65 73 22 29 20 | 69 73 20 74 72 75 65 20 |Times") |is true |
|00000f10| 74 68 65 6e 20 70 75 74 | 20 22 54 69 6d 65 73 22 |then put| "Times"|
|00000f20| 20 26 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 | & retur|n after |
|00000f30| 66 6f 6e 74 4c 69 73 74 | 0d 69 66 20 66 6f 6e 74 |fontList|.if font|
|00000f40| 4c 69 73 74 20 69 73 20 | 65 6d 70 74 79 20 74 68 |List is |empty th|
|00000f50| 65 6e 0d 61 6e 73 77 65 | 72 20 22 4d 61 67 4d 61 |en.answe|r "MagMa|
|00000f60| 6b 65 72 20 63 61 6e 20 | 75 73 65 20 48 65 6c 76 |ker can |use Helv|
|00000f70| 65 74 69 63 61 2c 20 4e | 65 77 20 59 6f 72 6b 2c |etica, N|ew York,|
|00000f80| 20 50 61 6c 61 74 69 6e | 6f 20 61 6e 64 20 54 69 | Palatin|o and Ti|
|00000f90| 6d 65 73 20 66 6f 6e 74 | 73 2e 20 22 20 26 20 c2 |mes font|s. " & .|
|00000fa0| 0d 22 48 6f 77 65 76 65 | 72 2c 20 79 6f 75 20 68 |."Howeve|r, you h|
|00000fb0| 61 76 65 20 6e 6f 6e 65 | 20 6f 66 20 74 68 65 20 |ave none| of the |
|00000fc0| 61 62 6f 76 65 20 69 6e | 73 74 61 6c 6c 65 64 2e |above in|stalled.|
|00000fd0| 20 53 6f 72 72 79 2e 22 | 0d 65 78 69 74 20 74 6f | Sorry."|.exit to|
|00000fe0| 20 68 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | hyperCa|rd.end i|
|00000ff0| 66 0d 72 65 74 75 72 6e | 20 66 6f 6e 74 4c 69 73 |f.return| fontLis|
|00001000| 74 0d 65 6e 64 20 6c 69 | 73 74 49 6e 73 74 61 6c |t.end li|stInstal|
|00001010| 6c 65 64 46 6f 6e 74 73 | 0d 0d 6f 6e 20 67 65 74 |ledFonts|..on get|
|00001020| 50 69 63 74 4c 69 73 74 | 0d 69 66 20 74 6f 6f 6c |PictList|.if tool|
|00001030| 73 53 74 61 63 6b 28 29 | 20 74 68 65 6e 20 65 78 |sStack()| then ex|
|00001040| 69 74 20 67 65 74 50 69 | 63 74 4c 69 73 74 0d 67 |it getPi|ctList.g|
|00001050| 6c 6f 62 61 6c 20 66 69 | 6c 65 4e 61 6d 65 2c 64 |lobal fi|leName,d|
|00001060| 6f 44 69 74 68 65 72 0d | 70 75 74 20 67 65 74 46 |oDither.|put getF|
|00001070| 69 6c 65 4e 61 6d 65 28 | 74 68 65 20 6c 6f 6e 67 |ileName(|the long|
|00001080| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 73 74 | name of| this st|
|00001090| 61 63 6b 29 20 69 6e 74 | 6f 20 46 69 6c 65 4e 61 |ack) int|o FileNa|
|000010a0| 6d 65 0d 67 65 74 20 52 | 65 73 6f 75 72 63 65 73 |me.get R|esources|
|000010b0| 28 46 69 6c 65 4e 61 6d | 65 29 0d 73 6f 72 74 20 |(FileNam|e).sort |
|000010c0| 69 74 0d 70 75 74 20 69 | 74 20 69 6e 74 6f 20 72 |it.put i|t into r|
|000010d0| 65 73 4c 69 73 74 0d 70 | 75 74 20 72 65 74 75 72 |esList.p|ut retur|
|000010e0| 6e 20 61 66 74 65 72 20 | 72 65 73 4c 69 73 74 0d |n after |resList.|
|000010f0| 72 65 70 65 61 74 20 77 | 69 74 68 20 78 20 3d 20 |repeat w|ith x = |
|00001100| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|00001110| 6f 66 20 6c 69 6e 65 73 | 20 6f 66 20 72 65 73 4c |of lines| of resL|
|00001120| 69 73 74 0d 69 66 20 77 | 6f 72 64 20 31 20 6f 66 |ist.if w|ord 1 of|
|00001130| 20 6c 69 6e 65 20 78 20 | 6f 66 20 72 65 73 4c 69 | line x |of resLi|
|00001140| 73 74 20 69 73 20 22 50 | 49 43 54 22 20 74 68 65 |st is "P|ICT" the|
|00001150| 6e 20 70 75 74 20 6c 69 | 6e 65 20 78 20 6f 66 20 |n put li|ne x of |
|00001160| 72 65 73 4c 69 73 74 20 | 26 20 72 65 74 75 72 6e |resList |& return|
|00001170| 20 61 66 74 65 72 20 70 | 69 63 74 4c 69 73 74 0d | after p|ictList.|
|00001180| 65 6e 64 20 72 65 70 65 | 61 74 0d 69 66 20 70 69 |end repe|at.if pi|
|00001190| 63 74 4c 69 73 74 20 69 | 73 20 6e 6f 74 20 22 70 |ctList i|s not "p|
|000011a0| 69 63 74 4c 69 73 74 22 | 20 74 68 65 6e 0d 70 75 |ictList"| then.pu|
|000011b0| 74 20 70 69 63 74 4c 69 | 73 74 20 69 6e 74 6f 20 |t pictLi|st into |
|000011c0| 66 6c 64 20 22 50 69 63 | 74 4c 69 73 74 22 0d 65 |fld "Pic|tList".e|
|000011d0| 6c 73 65 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |lse.put |empty in|
|000011e0| 74 6f 20 66 6c 64 20 70 | 69 63 74 4c 49 73 74 0d |to fld p|ictLIst.|
|000011f0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 67 65 74 50 69 |end if.e|nd getPi|
|00001200| 63 74 4c 69 73 74 0d 0d | 6f 6e 20 73 68 6f 77 54 |ctList..|on showT|
|00001210| 6f 6f 6c 73 0d 69 66 20 | 74 6f 6f 6c 73 53 74 61 |ools.if |toolsSta|
|00001220| 63 6b 28 29 20 74 68 65 | 6e 20 65 78 69 74 20 73 |ck() the|n exit s|
|00001230| 68 6f 77 54 6f 6f 6c 73 | 0d 69 66 20 74 68 65 72 |howTools|.if ther|
|00001240| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 22 42 |e is a w|indow "B|
|00001250| 6f 6f 6b 4d 61 6b 65 72 | 54 6f 6f 6c 73 22 20 74 |ookMaker|Tools" t|
|00001260| 68 65 6e 0d 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |hen.clos|e window|
|00001270| 20 22 42 6f 6f 6b 4d 61 | 6b 65 72 54 6f 6f 6c 73 | "BookMa|kerTools|
|00001280| 22 0d 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |".set th|e name o|
|00001290| 66 20 6d 65 6e 75 49 74 | 65 6d 20 31 20 6f 66 20 |f menuIt|em 1 of |
|000012a0| 6d 65 6e 75 20 22 4d 61 | 67 4d 61 6b 65 72 22 20 |menu "Ma|gMaker" |
|000012b0| 74 6f 20 22 53 68 6f 77 | 20 54 6f 6f 6c 73 22 0d |to "Show| Tools".|
|000012c0| 65 6c 73 65 0d 70 61 6c | 65 74 74 65 20 22 42 6f |else.pal|ette "Bo|
|000012d0| 6f 6b 4d 61 6b 65 72 54 | 6f 6f 6c 73 22 0d 73 65 |okMakerT|ools".se|
|000012e0| 74 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 6d 65 |t the na|me of me|
|000012f0| 6e 75 49 74 65 6d 20 31 | 20 6f 66 20 6d 65 6e 75 |nuItem 1| of menu|
|00001300| 20 22 4d 61 67 4d 61 6b | 65 72 22 20 74 6f 20 22 | "MagMak|er" to "|
|00001310| 48 69 64 65 20 54 6f 6f | 6c 73 22 0d 65 6e 64 20 |Hide Too|ls".end |
|00001320| 69 66 0d 65 6e 64 20 73 | 68 6f 77 54 6f 6f 6c 73 |if.end s|howTools|
|00001330| 0d 0d 6f 6e 20 73 68 6f | 77 50 69 63 74 4c 69 73 |..on sho|wPictLis|
|00001340| 74 0d 69 66 20 74 6f 6f | 6c 73 53 74 61 63 6b 28 |t.if too|lsStack(|
|00001350| 29 20 74 68 65 6e 20 65 | 78 69 74 20 73 68 6f 77 |) then e|xit show|
|00001360| 50 69 63 74 4c 69 73 74 | 0d 6c 6f 63 6b 20 73 63 |PictList|.lock sc|
|00001370| 72 65 65 6e 0d 6c 6f 63 | 6b 20 6d 65 73 73 61 67 |reen.loc|k messag|
|00001380| 65 73 0d 70 75 73 68 20 | 63 64 0d 69 66 20 74 68 |es.push |cd.if th|
|00001390| 65 20 6e 61 6d 65 20 6f | 66 20 6d 65 6e 75 49 74 |e name o|f menuIt|
|000013a0| 65 6d 20 32 20 6f 66 20 | 6d 65 6e 75 20 22 4d 61 |em 2 of |menu "Ma|
|000013b0| 67 4d 61 6b 65 72 22 20 | 69 73 20 22 48 69 64 65 |gMaker" |is "Hide|
|000013c0| 20 50 69 63 74 20 4c 69 | 73 74 22 20 74 68 65 6e | Pict Li|st" then|
|000013d0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 78 20 3d |.repeat |with x =|
|000013e0| 20 31 20 74 6f 20 74 68 | 65 20 6e 75 6d 62 65 72 | 1 to th|e number|
|000013f0| 20 6f 66 20 62 67 73 20 | 6f 66 20 74 68 69 73 20 | of bgs |of this |
|00001400| 73 74 61 63 6b 0d 68 69 | 64 65 20 66 6c 64 20 22 |stack.hi|de fld "|
|00001410| 50 69 63 74 54 68 69 73 | 50 61 67 65 22 0d 68 69 |PictThis|Page".hi|
|00001420| 64 65 20 66 6c 64 20 22 | 50 69 63 74 4c 69 73 74 |de fld "|PictList|
|00001430| 22 0d 67 6f 20 6e 65 78 | 74 20 62 67 0d 65 6e 64 |".go nex|t bg.end|
|00001440| 20 72 65 70 65 61 74 0d | 73 65 74 20 74 68 65 20 | repeat.|set the |
|00001450| 6e 61 6d 65 20 6f 66 20 | 6d 65 6e 75 49 74 65 6d |name of |menuItem|
|00001460| 20 32 20 6f 66 20 6d 65 | 6e 75 20 22 4d 61 67 4d | 2 of me|nu "MagM|
|00001470| 61 6b 65 72 22 20 74 6f | 20 22 53 68 6f 77 20 50 |aker" to| "Show P|
|00001480| 69 63 74 20 4c 69 73 74 | 22 0d 65 6c 73 65 0d 72 |ict List|".else.r|
|00001490| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|000014a0| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|000014b0| 66 20 62 67 73 20 6f 66 | 20 74 68 69 73 20 73 74 |f bgs of| this st|
|000014c0| 61 63 6b 0d 73 68 6f 77 | 20 66 6c 64 20 22 50 69 |ack.show| fld "Pi|
|000014d0| 63 74 54 68 69 73 50 61 | 67 65 22 0d 73 68 6f 77 |ctThisPa|ge".show|
|000014e0| 20 66 6c 64 20 22 50 69 | 63 74 4c 69 73 74 22 0d | fld "Pi|ctList".|
|000014f0| 67 65 74 50 69 63 74 4c | 69 73 74 0d 67 6f 20 6e |getPictL|ist.go n|
|00001500| 65 78 74 20 62 67 0d 65 | 6e 64 20 72 65 70 65 61 |ext bg.e|nd repea|
|00001510| 74 0d 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |t.set th|e name o|
|00001520| 66 20 6d 65 6e 75 49 74 | 65 6d 20 32 20 6f 66 20 |f menuIt|em 2 of |
|00001530| 6d 65 6e 75 20 22 4d 61 | 67 4d 61 6b 65 72 22 20 |menu "Ma|gMaker" |
|00001540| 74 6f 20 22 48 69 64 65 | 20 50 69 63 74 20 4c 69 |to "Hide| Pict Li|
|00001550| 73 74 22 0d 65 6e 64 20 | 69 66 0d 70 6f 70 20 63 |st".end |if.pop c|
|00001560| 64 0d 65 6e 64 20 73 68 | 6f 77 50 69 63 74 4c 69 |d.end sh|owPictLi|
|00001570| 73 74 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 67 65 74 |st..func|tion get|
|00001580| 46 69 6c 65 4e 61 6d 65 | 20 77 68 61 74 46 69 6c |FileName| whatFil|
|00001590| 65 0d 64 65 6c 65 74 65 | 20 77 6f 72 64 20 31 20 |e.delete| word 1 |
|000015a0| 6f 66 20 77 68 61 74 46 | 69 6c 65 0d 64 65 6c 65 |of whatF|ile.dele|
|000015b0| 74 65 20 74 68 65 20 6c | 61 73 74 20 63 68 61 72 |te the l|ast char|
|000015c0| 20 6f 66 20 77 68 61 74 | 46 69 6c 65 0d 64 65 6c | of what|File.del|
|000015d0| 65 74 65 20 74 68 65 20 | 66 69 72 73 74 20 63 68 |ete the |first ch|
|000015e0| 61 72 20 6f 66 20 77 68 | 61 74 46 69 6c 65 0d 72 |ar of wh|atFile.r|
|000015f0| 65 74 75 72 6e 20 77 68 | 61 74 46 69 6c 65 0d 65 |eturn wh|atFile.e|
|00001600| 6e 64 20 67 65 74 46 69 | 6c 65 4e 61 6d 65 0d 0d |nd getFi|leName..|
|00001610| 6f 6e 20 70 69 63 74 75 | 72 65 50 6c 61 63 65 0d |on pictu|rePlace.|
|00001620| 62 75 74 74 6f 6e 33 0d | 65 6e 64 20 70 69 63 74 |button3.|end pict|
|00001630| 75 72 65 50 6c 61 63 65 | 0d 0d 6f 6e 20 63 6f 70 |urePlace|..on cop|
|00001640| 79 50 69 63 74 75 72 65 | 0d 69 66 20 74 68 65 72 |yPicture|.if ther|
|00001650| 65 20 69 73 20 61 20 62 | 74 6e 20 22 50 69 63 74 |e is a b|tn "Pict|
|00001660| 75 72 65 22 20 74 68 65 | 6e 0d 6c 6f 63 6b 20 73 |ure" the|n.lock s|
|00001670| 63 72 65 65 6e 0d 73 65 | 6c 65 63 74 20 62 74 6e |creen.se|lect btn|
|00001680| 20 22 50 69 63 74 75 72 | 65 22 0d 64 6f 4d 65 6e | "Pictur|e".doMen|
|00001690| 75 20 22 43 6f 70 79 20 | 42 75 74 74 6f 6e 22 0d |u "Copy |Button".|
|000016a0| 63 68 6f 6f 73 65 20 74 | 68 65 20 62 72 6f 77 73 |choose t|he brows|
|000016b0| 65 20 74 6f 6f 6c 0d 65 | 6c 73 65 0d 61 6e 73 77 |e tool.e|lse.answ|
|000016c0| 65 72 20 22 54 68 65 72 | 65 20 69 73 20 6e 6f 20 |er "Ther|e is no |
|000016d0| 72 75 6e 2d 61 72 6f 75 | 6e 64 20 74 6f 20 63 6f |run-arou|nd to co|
|000016e0| 70 79 20 6f 6e 20 74 68 | 69 73 20 70 61 67 65 2e |py on th|is page.|
|000016f0| 22 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 63 6f 70 |".end if|.end cop|
|00001700| 79 50 69 63 74 75 72 65 | 0d 0d 6f 6e 20 70 61 73 |yPicture|..on pas|
|00001710| 74 65 50 69 63 74 75 72 | 65 0d 69 66 20 74 68 65 |tePictur|e.if the|
|00001720| 72 65 20 69 73 20 61 20 | 6d 65 6e 75 20 22 45 64 |re is a |menu "Ed|
|00001730| 69 74 22 20 74 68 65 6e | 0d 69 66 20 74 68 65 72 |it" then|.if ther|
|00001740| 65 20 69 73 20 61 20 6d | 65 6e 75 49 74 65 6d 20 |e is a m|enuItem |
|00001750| 22 50 61 73 74 65 20 42 | 75 74 74 6f 6e 22 20 6f |"Paste B|utton" o|
|00001760| 66 20 6d 65 6e 75 20 22 | 45 64 69 74 22 20 74 68 |f menu "|Edit" th|
|00001770| 65 6e 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |en.if th|ere is a|
|00001780| 20 62 74 6e 20 22 50 69 | 63 74 75 72 65 22 20 74 | btn "Pi|cture" t|
|00001790| 68 65 6e 0d 61 6e 73 77 | 65 72 20 22 44 65 6c 65 |hen.answ|er "Dele|
|000017a0| 74 65 20 63 75 72 72 65 | 6e 74 20 74 65 78 74 20 |te curre|nt text |
|000017b0| 72 75 6e 2d 61 72 6f 75 | 6e 64 3f 22 20 77 69 74 |run-arou|nd?" wit|
|000017c0| 68 20 22 43 61 6e 63 65 | 6c 22 20 6f 72 20 22 44 |h "Cance|l" or "D|
|000017d0| 65 6c 65 74 65 22 0d 69 | 66 20 69 74 20 69 73 20 |elete".i|f it is |
|000017e0| 6e 6f 74 20 22 44 65 6c | 65 74 65 22 20 74 68 65 |not "Del|ete" the|
|000017f0| 6e 20 65 78 69 74 20 70 | 61 73 74 65 50 69 63 74 |n exit p|astePict|
|00001800| 75 72 65 0d 70 75 74 20 | 74 72 75 65 20 69 6e 74 |ure.put |true int|
|00001810| 6f 20 64 65 6c 65 74 65 | 4f 6c 64 0d 73 65 74 20 |o delete|Old.set |
|00001820| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 62 74 6e 20 |the name| of btn |
|00001830| 22 50 69 63 74 75 72 65 | 22 20 74 6f 20 22 6f 6c |"Picture|" to "ol|
|00001840| 64 50 69 63 74 75 72 65 | 22 0d 65 6e 64 20 69 66 |dPicture|".end if|
|00001850| 0d 64 6f 4d 65 6e 75 20 | 22 50 61 73 74 65 20 42 |.doMenu |"Paste B|
|00001860| 75 74 74 6f 6e 22 0d 69 | 66 20 64 65 6c 65 74 65 |utton".i|f delete|
|00001870| 4f 6c 64 20 69 73 20 74 | 72 75 65 20 74 68 65 6e |Old is t|rue then|
|00001880| 0d 73 65 6c 65 63 74 20 | 62 74 6e 20 22 6f 6c 64 |.select |btn "old|
|00001890| 50 69 63 74 75 72 65 22 | 0d 64 6f 4d 65 6e 75 20 |Picture"|.doMenu |
|000018a0| 22 43 75 74 20 42 75 74 | 74 6f 6e 22 0d 65 6e 64 |"Cut But|ton".end|
|000018b0| 20 69 66 0d 63 68 6f 6f | 73 65 20 74 68 65 20 62 | if.choo|se the b|
|000018c0| 72 6f 77 73 65 20 74 6f | 6f 6c 0d 61 6e 73 77 65 |rowse to|ol.answe|
|000018d0| 72 20 22 52 65 66 6c 6f | 77 20 74 65 78 74 3f 22 |r "Reflo|w text?"|
|000018e0| 20 77 69 74 68 20 22 43 | 61 6e 63 65 6c 22 20 6f | with "C|ancel" o|
|000018f0| 72 20 22 4f 4b 22 0d 69 | 66 20 69 74 20 69 73 20 |r "OK".i|f it is |
|00001900| 22 4f 4b 22 20 74 68 65 | 6e 20 72 65 46 6c 6f 77 |"OK" the|n reFlow|
|00001910| 57 69 74 68 53 74 79 6c | 65 20 2d 2d 20 64 6f 55 |WithStyl|e -- doU|
|00001920| 70 64 61 74 65 0d 65 6e | 64 20 69 66 0d 65 6e 64 |pdate.en|d if.end|
|00001930| 20 69 66 0d 65 6e 64 20 | 70 61 73 74 65 50 69 63 | if.end |pastePic|
|00001940| 74 75 72 65 0d 0d 6f 6e | 20 63 6f 70 79 50 69 63 |ture..on| copyPic|
|00001950| 74 0d 67 6c 6f 62 61 6c | 20 63 6f 70 69 65 64 50 |t.global| copiedP|
|00001960| 69 63 74 0d 69 66 20 66 | 6c 64 20 22 50 69 63 74 |ict.if f|ld "Pict|
|00001970| 54 68 69 73 50 61 67 65 | 22 20 69 73 20 6e 6f 74 |ThisPage|" is not|
|00001980| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 70 75 74 20 | empty t|hen.put |
|00001990| 66 6c 64 20 22 50 69 63 | 74 54 68 69 73 50 61 67 |fld "Pic|tThisPag|
|000019a0| 65 22 20 69 6e 74 6f 20 | 63 6f 70 69 65 64 50 69 |e" into |copiedPi|
|000019b0| 63 74 0d 65 6c 73 65 0d | 61 6e 73 77 65 72 20 22 |ct.else.|answer "|
|000019c0| 4e 6f 20 50 49 43 54 20 | 74 6f 20 63 6f 70 79 20 |No PICT |to copy |
|000019d0| 6f 6e 20 74 68 69 73 20 | 70 61 67 65 2e 22 0d 65 |on this |page.".e|
|000019e0| 6e 64 20 69 66 0d 65 6e | 64 20 63 6f 70 79 50 69 |nd if.en|d copyPi|
|000019f0| 63 74 0d 0d 6f 6e 20 70 | 61 73 74 65 50 69 63 74 |ct..on p|astePict|
|00001a00| 0d 67 6c 6f 62 61 6c 20 | 63 6f 70 69 65 64 50 69 |.global |copiedPi|
|00001a10| 63 74 0d 69 66 20 63 6f | 70 69 65 64 50 69 63 74 |ct.if co|piedPict|
|00001a20| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 20 74 68 | is not |empty th|
|00001a30| 65 6e 0d 69 66 20 66 6c | 64 20 22 50 69 63 74 54 |en.if fl|d "PictT|
|00001a40| 68 69 73 50 61 67 65 22 | 20 69 73 20 6e 6f 74 20 |hisPage"| is not |
|00001a50| 65 6d 70 74 79 20 74 68 | 65 6e 0d 61 6e 73 77 65 |empty th|en.answe|
|00001a60| 72 20 22 52 65 70 6c 61 | 63 65 20 63 75 72 72 65 |r "Repla|ce curre|
|00001a70| 6e 74 20 50 49 43 54 3f | 22 20 77 69 74 68 20 22 |nt PICT?|" with "|
|00001a80| 43 61 6e 63 65 6c 22 20 | 6f 72 20 22 4f 4b 22 0d |Cancel" |or "OK".|
|00001a90| 69 66 20 69 74 20 69 73 | 20 6e 6f 74 20 22 4f 4b |if it is| not "OK|
|00001aa0| 22 20 74 68 65 6e 20 65 | 78 69 74 20 70 61 73 74 |" then e|xit past|
|00001ab0| 65 50 69 63 74 0d 65 6e | 64 20 69 66 0d 69 66 20 |ePict.en|d if.if |
|00001ac0| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|00001ad0| 77 20 28 69 74 65 6d 20 | 31 20 6f 66 20 66 6c 64 |w (item |1 of fld|
|00001ae0| 20 22 50 69 63 74 54 68 | 69 73 50 61 67 65 22 29 | "PictTh|isPage")|
|00001af0| 20 74 68 65 6e 0d 63 6c | 6f 73 65 20 77 69 6e 64 | then.cl|ose wind|
|00001b00| 6f 77 20 28 69 74 65 6d | 20 31 20 6f 66 20 66 6c |ow (item| 1 of fl|
|00001b10| 64 20 22 50 69 63 74 54 | 68 69 73 50 61 67 65 22 |d "PictT|hisPage"|
|00001b20| 29 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 63 6f 70 |).end if|.put cop|
|00001b30| 69 65 64 50 69 63 74 20 | 69 6e 74 6f 20 66 6c 64 |iedPict |into fld|
|00001b40| 20 22 50 69 63 74 54 68 | 69 73 50 61 67 65 22 0d | "PictTh|isPage".|
|00001b50| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 63 |put empt|y into c|
|00001b60| 6f 70 69 65 64 50 69 63 | 74 0d 6f 70 65 6e 43 61 |opiedPic|t.openCa|
|00001b70| 72 64 0d 65 6c 73 65 0d | 61 6e 73 77 65 72 20 22 |rd.else.|answer "|
|00001b80| 54 68 65 72 65 20 69 73 | 20 6e 6f 20 50 49 43 54 |There is| no PICT|
|00001b90| 20 74 6f 20 70 61 73 74 | 65 2e 22 0d 65 6e 64 20 | to past|e.".end |
|00001ba0| 69 66 0d 65 6e 64 20 70 | 61 73 74 65 50 69 63 74 |if.end p|astePict|
|00001bb0| 0d 0d 0d 6f 6e 20 64 65 | 6c 65 74 65 50 69 63 74 |...on de|letePict|
|00001bc0| 75 72 65 20 77 68 61 74 | 57 61 72 6e 69 6e 67 0d |ure what|Warning.|
|00001bd0| 69 66 20 74 6f 6f 6c 73 | 53 74 61 63 6b 28 29 20 |if tools|Stack() |
|00001be0| 74 68 65 6e 20 65 78 69 | 74 20 64 65 6c 65 74 65 |then exi|t delete|
|00001bf0| 50 69 63 74 75 72 65 0d | 67 6c 6f 62 61 6c 20 74 |Picture.|global t|
|00001c00| 68 65 54 6f 6f 6c 0d 69 | 66 20 74 68 65 72 65 20 |heTool.i|f there |
|00001c10| 69 73 20 61 20 62 74 6e | 20 22 50 69 63 74 75 72 |is a btn| "Pictur|
|00001c20| 65 22 20 74 68 65 6e 0d | 63 6f 70 79 50 69 63 74 |e" then.|copyPict|
|00001c30| 75 72 65 0d 63 75 74 42 | 75 74 74 6f 6e 0d 65 6c |ure.cutB|utton.el|
|00001c40| 73 65 0d 61 6e 73 77 65 | 72 20 22 4e 6f 20 70 69 |se.answe|r "No pi|
|00001c50| 63 74 75 72 65 20 62 6f | 78 20 74 6f 20 64 65 6c |cture bo|x to del|
|00001c60| 65 74 65 20 6f 6e 20 74 | 68 69 73 20 70 61 67 65 |ete on t|his page|
|00001c70| 2e 22 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 65 6d |.".end i|f.put em|
|00001c80| 70 74 79 20 69 6e 74 6f | 20 74 68 65 54 6f 6f 6c |pty into| theTool|
|00001c90| 0d 73 65 74 20 74 68 65 | 20 69 63 6f 6e 20 6f 66 |.set the| icon of|
|00001ca0| 20 62 67 20 62 74 6e 20 | 22 54 68 65 54 6f 6f 6c | bg btn |"TheTool|
|00001cb0| 42 74 6e 22 20 74 6f 20 | 22 48 61 6e 64 22 0d 73 |Btn" to |"Hand".s|
|00001cc0| 65 74 20 74 68 65 20 63 | 68 65 63 6b 4d 61 72 6b |et the c|heckMark|
|00001cd0| 20 6f 66 20 6d 65 6e 75 | 49 74 65 6d 20 31 31 20 | of menu|Item 11 |
|00001ce0| 6f 66 20 6d 65 6e 75 20 | 22 4c 61 79 6f 75 74 22 |of menu |"Layout"|
|00001cf0| 20 74 6f 20 66 61 6c 73 | 65 0d 65 6e 64 20 64 65 | to fals|e.end de|
|00001d00| 6c 65 74 65 50 69 63 74 | 75 72 65 0d 0d 6f 6e 20 |letePict|ure..on |
|00001d10| 63 75 74 42 75 74 74 6f | 6e 0d 67 6c 6f 62 61 6c |cutButto|n.global|
|00001d20| 20 74 68 65 43 6f 72 6e | 65 72 0d 6c 6f 63 6b 20 | theCorn|er.lock |
|00001d30| 73 63 72 65 65 6e 0d 73 | 65 6c 65 63 74 20 62 74 |screen.s|elect bt|
|00001d40| 6e 20 22 50 69 63 74 75 | 72 65 22 0d 64 6f 4d 65 |n "Pictu|re".doMe|
|00001d50| 6e 75 20 22 43 75 74 20 | 42 75 74 74 6f 6e 22 0d |nu "Cut |Button".|
|00001d60| 63 68 6f 6f 73 65 20 74 | 68 65 20 62 72 6f 77 73 |choose t|he brows|
|00001d70| 65 20 74 6f 6f 6c 0d 61 | 6e 73 77 65 72 20 22 52 |e tool.a|nswer "R|
|00001d80| 65 66 6c 6f 77 20 74 65 | 78 74 3f 22 20 77 69 74 |eflow te|xt?" wit|
|00001d90| 68 20 22 43 61 6e 63 65 | 6c 22 20 6f 72 20 22 4f |h "Cance|l" or "O|
|00001da0| 4b 22 0d 69 66 20 69 74 | 20 69 73 20 22 4f 4b 22 |K".if it| is "OK"|
|00001db0| 20 74 68 65 6e 0d 72 65 | 46 6c 6f 77 57 69 74 68 | then.re|FlowWith|
|00001dc0| 53 74 79 6c 65 0d 65 6e | 64 20 69 66 0d 70 75 74 |Style.en|d if.put|
|00001dd0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 74 68 65 43 | empty i|nto theC|
|00001de0| 6f 72 6e 65 72 0d 65 6e | 64 20 63 75 74 42 75 74 |orner.en|d cutBut|
|00001df0| 74 6f 6e 0d 0d 0d 6f 6e | 20 70 6c 61 63 65 50 69 |ton...on| placePi|
|00001e00| 63 74 20 77 68 61 74 50 | 69 63 74 0d 67 6c 6f 62 |ct whatP|ict.glob|
|00001e10| 61 6c 20 64 6f 44 69 74 | 68 65 72 0d 69 66 20 77 |al doDit|her.if w|
|00001e20| 68 61 74 50 69 63 74 20 | 69 73 20 6e 6f 74 20 65 |hatPict |is not e|
|00001e30| 6d 70 74 79 20 74 68 65 | 6e 20 70 75 74 20 22 50 |mpty the|n put "P|
|00001e40| 6c 61 63 65 22 20 26 20 | 72 65 74 75 72 6e 20 26 |lace" & |return &|
|00001e50| 20 77 68 61 74 50 69 63 | 74 20 69 6e 74 6f 20 69 | whatPic|t into i|
|00001e60| 74 0d 69 66 20 77 68 61 | 74 50 69 63 74 20 69 73 |t.if wha|tPict is|
|00001e70| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 67 65 74 20 | empty t|hen get |
|00001e80| 73 68 6f 77 4c 69 73 74 | 28 66 6c 64 20 22 50 69 |showList|(fld "Pi|
|00001e90| 63 74 4c 69 73 74 22 2c | 22 50 6c 61 63 65 20 50 |ctList",|"Place P|
|00001ea0| 49 43 54 22 2c 74 72 75 | 65 2c 66 61 6c 73 65 2c |ICT",tru|e,false,|
|00001eb0| 22 50 6c 61 63 65 2c 43 | 61 6e 63 65 6c 22 2c 31 |"Place,C|ancel",1|
|00001ec0| 29 0d 69 66 20 6c 69 6e | 65 20 31 20 6f 66 20 69 |).if lin|e 1 of i|
|00001ed0| 74 20 69 73 20 22 50 6c | 61 63 65 22 20 74 68 65 |t is "Pl|ace" the|
|00001ee0| 6e 0d 69 66 20 66 6c 64 | 20 22 50 69 63 74 54 68 |n.if fld| "PictTh|
|00001ef0| 69 73 50 61 67 65 22 20 | 69 73 20 6e 6f 74 20 65 |isPage" |is not e|
|00001f00| 6d 70 74 79 20 74 68 65 | 6e 0d 69 66 20 74 68 65 |mpty the|n.if the|
|00001f10| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 28 |re is a |window (|
|00001f20| 69 74 65 6d 20 31 20 6f | 66 20 66 6c 64 20 22 50 |item 1 o|f fld "P|
|00001f30| 69 63 74 54 68 69 73 50 | 61 67 65 22 29 20 74 68 |ictThisP|age") th|
|00001f40| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|00001f50| 28 69 74 65 6d 20 31 20 | 6f 66 20 66 6c 64 20 22 |(item 1 |of fld "|
|00001f60| 50 69 63 74 54 68 69 73 | 50 61 67 65 22 29 0d 65 |PictThis|Page").e|
|00001f70| 6e 64 20 69 66 0d 70 75 | 74 20 77 6f 72 64 20 34 |nd if.pu|t word 4|
|00001f80| 20 74 6f 20 28 74 68 65 | 20 6e 75 6d 62 65 72 20 | to (the| number |
|00001f90| 6f 66 20 77 6f 72 64 73 | 20 6f 66 20 6c 69 6e 65 |of words| of line|
|00001fa0| 20 28 6c 69 6e 65 20 32 | 20 6f 66 20 69 74 29 20 | (line 2| of it) |
|00001fb0| 6f 66 20 66 6c 64 20 22 | 50 69 63 74 4c 69 73 74 |of fld "|PictList|
|00001fc0| 22 29 20 6f 66 20 6c 69 | 6e 65 20 28 6c 69 6e 65 |") of li|ne (line|
|00001fd0| 20 32 20 6f 66 20 69 74 | 29 20 6f 66 20 66 6c 64 | 2 of it|) of fld|
|00001fe0| 20 22 50 69 63 74 4c 69 | 73 74 22 20 69 6e 74 6f | "PictLi|st" into|
|00001ff0| 20 74 68 65 50 69 63 74 | 0d 69 66 20 69 74 65 6d | thePict|.if item|
|00002000| 20 32 20 74 6f 20 33 20 | 6f 66 20 66 6c 64 20 22 | 2 to 3 |of fld "|
|00002010| 50 69 63 74 54 68 69 73 | 50 61 67 65 22 20 69 73 |PictThis|Page" is|
|00002020| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 70 75 74 20 | empty t|hen put |
|00002030| 22 39 30 2c 35 34 22 20 | 69 6e 74 6f 20 77 68 61 |"90,54" |into wha|
|00002040| 74 4c 6f 63 0d 65 6c 73 | 65 20 70 75 74 20 69 74 |tLoc.els|e put it|
|00002050| 65 6d 20 32 20 74 6f 20 | 33 20 6f 66 20 66 6c 64 |em 2 to |3 of fld|
|00002060| 20 22 50 69 63 74 54 68 | 69 73 50 61 67 65 22 20 | "PictTh|isPage" |
|00002070| 20 69 6e 74 6f 20 77 68 | 61 74 4c 6f 63 0d 70 69 | into wh|atLoc.pi|
|00002080| 63 74 75 72 65 20 74 68 | 65 50 69 63 74 2c 72 65 |cture th|ePict,re|
|00002090| 73 6f 75 72 63 65 2c 72 | 65 63 74 2c 66 61 6c 73 |source,r|ect,fals|
|000020a0| 65 20 2d 2d 20 2c 34 0d | 69 66 20 74 68 65 72 65 |e -- ,4.|if there|
|000020b0| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 28 69 74 | is a wi|ndow (it|
|000020c0| 65 6d 20 31 20 6f 66 20 | 74 68 65 50 69 63 74 29 |em 1 of |thePict)|
|000020d0| 20 74 68 65 6e 20 73 65 | 74 20 74 68 65 20 64 69 | then se|t the di|
|000020e0| 74 68 65 72 69 6e 67 20 | 6f 66 20 77 69 6e 64 6f |thering |of windo|
|000020f0| 77 20 28 69 74 65 6d 20 | 31 20 6f 66 20 74 68 65 |w (item |1 of the|
|00002100| 50 69 63 74 29 20 74 6f | 20 64 6f 44 69 74 68 65 |Pict) to| doDithe|
|00002110| 72 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |r.if the|re is a |
|00002120| 77 69 6e 64 6f 77 20 69 | 74 65 6d 20 31 20 6f 66 |window i|tem 1 of|
|00002130| 20 74 68 65 50 69 63 74 | 20 74 68 65 6e 0d 73 65 | thePict| then.se|
|00002140| 74 20 74 6f 70 6c 65 66 | 74 20 6f 66 20 77 69 6e |t toplef|t of win|
|00002150| 64 6f 77 20 69 74 65 6d | 20 31 20 6f 66 20 74 68 |dow item| 1 of th|
|00002160| 65 50 69 63 74 20 74 6f | 20 77 68 61 74 4c 6f 63 |ePict to| whatLoc|
|00002170| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 74 68 65 50 |.end if.|put theP|
|00002180| 69 63 74 20 26 20 22 2c | 22 20 26 20 77 68 61 74 |ict & ",|" & what|
|00002190| 4c 6f 63 20 69 6e 74 6f | 20 66 6c 64 20 22 50 69 |Loc into| fld "Pi|
|000021a0| 63 74 54 68 69 73 50 61 | 67 65 22 0d 73 68 6f 77 |ctThisPa|ge".show|
|000021b0| 20 77 69 6e 64 6f 77 20 | 74 68 65 50 69 63 74 0d | window |thePict.|
|000021c0| 65 6c 73 65 0d 65 78 69 | 74 20 74 6f 20 68 79 70 |else.exi|t to hyp|
|000021d0| 65 72 43 61 72 64 0d 65 | 6e 64 20 69 66 0d 65 6e |erCard.e|nd if.en|
|000021e0| 64 20 70 6c 61 63 65 50 | 69 63 74 0d 0d 6f 6e 20 |d placeP|ict..on |
|000021f0| 63 75 74 50 69 63 74 0d | 69 66 20 74 68 65 72 65 |cutPict.|if there|
|00002200| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 28 69 74 | is a wi|ndow (it|
|00002210| 65 6d 20 31 20 6f 66 20 | 66 6c 64 20 22 50 69 63 |em 1 of |fld "Pic|
|00002220| 74 54 68 69 73 50 61 67 | 65 22 29 20 74 68 65 6e |tThisPag|e") then|
|00002230| 0d 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 28 69 |.close w|indow (i|
|00002240| 74 65 6d 20 31 20 6f 66 | 20 66 6c 64 20 22 50 69 |tem 1 of| fld "Pi|
|00002250| 63 74 54 68 69 73 50 61 | 67 65 22 29 0d 63 6f 70 |ctThisPa|ge").cop|
|00002260| 79 50 69 63 74 0d 70 75 | 74 20 65 6d 70 74 79 20 |yPict.pu|t empty |
|00002270| 69 6e 74 6f 20 66 6c 64 | 20 22 50 69 63 74 54 68 |into fld| "PictTh|
|00002280| 69 73 50 61 67 65 22 0d | 69 66 20 74 68 65 72 65 |isPage".|if there|
|00002290| 20 69 73 20 61 20 62 74 | 6e 20 22 50 69 63 74 75 | is a bt|n "Pictu|
|000022a0| 72 65 22 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |re" then|.answer |
|000022b0| 22 44 65 6c 65 74 65 20 | 72 75 6e 2d 61 72 6f 75 |"Delete |run-arou|
|000022c0| 6e 64 3f 22 20 77 69 74 | 68 20 22 4e 6f 22 20 6f |nd?" wit|h "No" o|
|000022d0| 72 20 22 44 65 6c 65 74 | 65 22 0d 69 66 20 69 74 |r "Delet|e".if it|
|000022e0| 20 69 73 20 22 44 65 6c | 65 74 65 22 20 74 68 65 | is "Del|ete" the|
|000022f0| 6e 20 63 75 74 42 75 74 | 74 6f 6e 0d 65 6e 64 20 |n cutBut|ton.end |
|00002300| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 63 75 |if.end i|f.end cu|
|00002310| 74 50 69 63 74 0d 0d 6f | 6e 20 69 6d 70 6f 72 74 |tPict..o|n import|
|00002320| 50 69 63 74 0d 69 66 20 | 74 6f 6f 6c 73 53 74 61 |Pict.if |toolsSta|
|00002330| 63 6b 28 29 20 74 68 65 | 6e 20 65 78 69 74 20 69 |ck() the|n exit i|
|00002340| 6d 70 6f 72 74 50 69 63 | 74 0d 69 66 20 74 68 65 |mportPic|t.if the|
|00002350| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 28 |re is a |window (|
|00002360| 69 74 65 6d 20 31 20 6f | 66 20 66 6c 64 20 22 50 |item 1 o|f fld "P|
|00002370| 69 63 74 54 68 69 73 50 | 61 67 65 22 29 20 74 68 |ictThisP|age") th|
|00002380| 65 6e 0d 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en.close| window |
|00002390| 28 69 74 65 6d 20 31 20 | 6f 66 20 66 6c 64 20 22 |(item 1 |of fld "|
|000023a0| 50 69 63 74 54 68 69 73 | 50 61 67 65 22 29 0d 65 |PictThis|Page").e|
|000023b0| 6e 64 20 69 66 0d 61 6e | 73 77 65 72 20 66 69 6c |nd if.an|swer fil|
|000023c0| 65 20 22 43 68 6f 6f 73 | 65 20 61 20 50 49 43 54 |e "Choos|e a PICT|
|000023d0| 20 66 69 6c 65 20 74 6f | 20 69 6d 70 6f 72 74 20 | file to| import |
|000023e0| 69 6e 74 6f 22 20 26 20 | 72 65 74 75 72 6e 20 26 |into" & |return &|
|000023f0| 20 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | the sho|rt name |
|00002400| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 20 6f 66 |of this |stack of|
|00002410| 20 74 79 70 65 20 22 50 | 49 43 54 22 0d 69 66 20 | type "P|ICT".if |
|00002420| 69 74 20 69 73 20 65 6d | 70 74 79 20 6f 72 20 74 |it is em|pty or t|
|00002430| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 22 43 61 |he resul|t is "Ca|
|00002440| 6e 63 65 6c 22 20 74 68 | 65 6e 0d 6f 70 65 6e 43 |ncel" th|en.openC|
|00002450| 61 72 64 0d 65 78 69 74 | 20 69 6d 70 6f 72 74 50 |ard.exit| importP|
|00002460| 69 63 74 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 69 |ict.end |if.put i|
|00002470| 74 20 69 6e 74 6f 20 74 | 68 65 50 69 63 74 46 69 |t into t|hePictFi|
|00002480| 6c 65 0d 61 73 6b 20 22 | 4e 61 6d 65 20 74 68 65 |le.ask "|Name the|
|00002490| 20 66 69 6c 65 2e 22 0d | 69 66 20 69 74 20 69 73 | file.".|if it is|
|000024a0| 20 22 43 61 6e 63 65 6c | 22 20 6f 72 20 69 74 20 | "Cancel|" or it |
|000024b0| 69 73 20 65 6d 70 74 79 | 20 6f 72 20 74 68 65 20 |is empty| or the |
|000024c0| 72 65 73 75 6c 74 20 69 | 73 20 22 43 61 6e 63 65 |result i|s "Cance|
|000024d0| 6c 22 20 74 68 65 6e 0d | 6f 70 65 6e 43 61 72 64 |l" then.|openCard|
|000024e0| 0d 65 78 69 74 20 69 6d | 70 6f 72 74 50 69 63 74 |.exit im|portPict|
|000024f0| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 69 74 20 69 |.end if.|put it i|
|00002500| 6e 74 6f 20 74 68 65 50 | 69 63 74 4e 61 6d 65 0d |nto theP|ictName.|
|00002510| 50 49 43 54 74 6f 52 73 | 72 63 20 74 68 65 50 69 |PICTtoRs|rc thePi|
|00002520| 63 74 46 69 6c 65 2c 74 | 68 65 50 69 63 74 4e 61 |ctFile,t|hePictNa|
|00002530| 6d 65 0d 67 65 74 50 69 | 63 74 4c 69 73 74 0d 61 |me.getPi|ctList.a|
|00002540| 6e 73 77 65 72 20 22 50 | 6c 61 63 65 20 69 6d 70 |nswer "P|lace imp|
|00002550| 6f 72 74 65 64 20 70 69 | 63 74 75 65 20 6f 6e 20 |orted pi|ctue on |
|00002560| 74 68 69 73 20 70 61 67 | 65 3f 22 20 77 69 74 68 |this pag|e?" with|
|00002570| 20 22 4e 6f 22 20 6f 72 | 20 22 59 65 73 22 0d 69 | "No" or| "Yes".i|
|00002580| 66 20 69 74 20 69 73 20 | 22 59 65 73 22 20 74 68 |f it is |"Yes" th|
|00002590| 65 6e 0d 67 65 74 50 69 | 63 74 75 72 65 20 74 68 |en.getPi|cture th|
|000025a0| 65 50 69 63 74 4e 61 6d | 65 0d 73 68 6f 77 20 77 |ePictNam|e.show w|
|000025b0| 69 6e 64 6f 77 20 74 68 | 65 50 69 63 74 4e 61 6d |indow th|ePictNam|
|000025c0| 65 0d 70 75 74 20 74 68 | 65 50 69 63 74 4e 61 6d |e.put th|ePictNam|
|000025d0| 65 20 26 20 22 2c 22 20 | 26 20 74 68 65 20 6c 6f |e & "," |& the lo|
|000025e0| 63 20 6f 66 20 77 69 6e | 64 6f 77 20 74 68 65 50 |c of win|dow theP|
|000025f0| 69 63 74 4e 61 6d 65 20 | 69 6e 74 6f 20 66 6c 64 |ictName |into fld|
|00002600| 20 22 50 69 63 74 54 68 | 69 73 50 61 67 65 22 0d | "PictTh|isPage".|
|00002610| 65 6c 73 65 0d 6f 70 65 | 6e 43 61 72 64 0d 65 6e |else.ope|nCard.en|
|00002620| 64 20 69 66 0d 65 6e 64 | 20 69 6d 70 6f 72 74 50 |d if.end| importP|
|00002630| 69 63 74 0d 0d 0d 6f 6e | 20 65 64 69 74 50 69 63 |ict...on| editPic|
|00002640| 74 0d 67 65 74 50 69 63 | 74 4c 69 73 74 0d 67 65 |t.getPic|tList.ge|
|00002650| 74 20 73 68 6f 77 4c 69 | 73 74 28 66 6c 64 20 22 |t showLi|st(fld "|
|00002660| 50 69 63 74 4c 69 73 74 | 22 2c 22 43 75 72 72 65 |PictList|","Curre|
|00002670| 6e 74 6c 79 20 69 6e 73 | 74 61 6c 6c 65 64 20 50 |ntly ins|talled P|
|00002680| 49 43 54 73 2e 22 2c 74 | 72 75 65 2c 74 72 75 65 |ICTs.",t|rue,true|
|00002690| 2c 22 44 65 6c 65 74 65 | 2c 43 61 6e 63 65 6c 2c |,"Delete|,Cancel,|
|000026a0| 49 6d 70 6f 72 74 22 2c | 31 29 0d 70 75 74 20 28 |Import",|1).put (|
|000026b0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |the numb|er of it|
|000026c0| 65 6d 73 20 6f 66 20 6c | 69 6e 65 20 32 20 6f 66 |ems of l|ine 2 of|
|000026d0| 20 69 74 29 20 69 6e 74 | 6f 20 74 6f 74 61 6c 49 | it) int|o totalI|
|000026e0| 74 65 6d 73 0d 69 66 20 | 6c 69 6e 65 20 31 20 6f |tems.if |line 1 o|
|000026f0| 66 20 69 74 20 69 73 20 | 22 44 65 6c 65 74 65 22 |f it is |"Delete"|
|00002700| 20 74 68 65 6e 0d 72 65 | 70 65 61 74 20 77 69 74 | then.re|peat wit|
|00002710| 68 20 78 20 3d 20 31 20 | 74 6f 20 74 6f 74 61 6c |h x = 1 |to total|
|00002720| 49 74 65 6d 73 0d 70 75 | 74 20 6c 69 6e 65 20 28 |Items.pu|t line (|
|00002730| 69 74 65 6d 20 74 6f 74 | 61 6c 49 74 65 6d 73 20 |item tot|alItems |
|00002740| 2d 20 28 78 20 2d 31 29 | 20 6f 66 20 6c 69 6e 65 |- (x -1)| of line|
|00002750| 20 32 20 6f 66 20 69 74 | 29 20 6f 66 20 66 6c 64 | 2 of it|) of fld|
|00002760| 20 22 50 69 63 74 4c 69 | 73 74 22 20 69 6e 74 6f | "PictLi|st" into|
|00002770| 20 64 65 6c 50 69 63 74 | 0d 72 65 6d 6f 76 65 50 | delPict|.removeP|
|00002780| 69 63 74 28 64 65 6c 50 | 69 63 74 29 0d 65 6e 64 |ict(delP|ict).end|
|00002790| 20 72 65 70 65 61 74 0d | 67 65 74 50 69 63 74 4c | repeat.|getPictL|
|000027a0| 69 73 74 0d 65 78 69 74 | 20 65 64 69 74 50 69 63 |ist.exit| editPic|
|000027b0| 74 0d 65 6e 64 20 69 66 | 0d 69 66 20 6c 69 6e 65 |t.end if|.if line|
|000027c0| 20 31 20 6f 66 20 69 74 | 20 69 73 20 22 49 6d 70 | 1 of it| is "Imp|
|000027d0| 6f 72 74 22 20 74 68 65 | 6e 0d 69 6d 70 6f 72 74 |ort" the|n.import|
|000027e0| 50 69 63 74 0d 65 78 69 | 74 20 65 64 69 74 50 69 |Pict.exi|t editPi|
|000027f0| 63 74 0d 65 6e 64 20 69 | 66 0d 6f 70 65 6e 43 61 |ct.end i|f.openCa|
|00002800| 72 64 0d 65 6e 64 20 65 | 64 69 74 50 69 63 74 0d |rd.end e|ditPict.|
|00002810| 0d 0d 6f 6e 20 75 73 65 | 53 74 61 63 6b 20 74 68 |..on use|Stack th|
|00002820| 65 53 74 61 63 6b 0d 69 | 66 20 74 68 65 53 74 61 |eStack.i|f theSta|
|00002830| 63 6b 20 69 73 20 69 6e | 20 74 68 65 20 73 74 61 |ck is in| the sta|
|00002840| 63 6b 73 49 6e 55 73 65 | 20 74 68 65 6e 20 65 78 |cksInUse| then ex|
|00002850| 69 74 20 75 73 65 53 74 | 61 63 6b 0d 69 66 20 74 |it useSt|ack.if t|
|00002860| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|00002870| 65 73 20 69 6e 20 74 68 | 65 20 73 74 61 63 6b 73 |es in th|e stacks|
|00002880| 49 6e 55 73 65 20 3d 20 | 31 30 0d 74 68 65 6e 20 |InUse = |10.then |
|00002890| 73 74 6f 70 20 75 73 69 | 6e 67 20 73 74 61 63 6b |stop usi|ng stack|
|000028a0| 20 28 6c 69 6e 65 20 31 | 20 6f 66 20 74 68 65 20 | (line 1| of the |
|000028b0| 73 74 61 63 6b 73 49 6e | 55 73 65 29 0d 69 66 20 |stacksIn|Use).if |
|000028c0| 74 68 65 72 65 20 69 73 | 20 61 20 73 74 61 63 6b |there is| a stack|
|000028d0| 20 74 68 65 53 74 61 63 | 6b 20 74 68 65 6e 0d 73 | theStac|k then.s|
|000028e0| 74 61 72 74 20 75 73 69 | 6e 67 20 73 74 61 63 6b |tart usi|ng stack|
|000028f0| 20 74 68 65 53 74 61 63 | 6b 0d 67 65 74 20 74 68 | theStac|k.get th|
|00002900| 65 20 72 65 73 75 6c 74 | 0d 69 66 20 69 74 20 69 |e result|.if it i|
|00002910| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|00002920| 0d 69 66 20 69 74 20 69 | 73 20 22 43 61 6e 27 74 |.if it i|s "Can't|
|00002930| 20 73 74 61 72 74 20 75 | 73 69 6e 67 20 68 6f 6d | start u|sing hom|
|00002940| 65 2e 22 20 74 68 65 6e | 20 65 78 69 74 20 75 73 |e." then| exit us|
|00002950| 65 53 74 61 63 6b 20 2d | 2d 20 c6 0d 61 6e 73 77 |eStack -|- ..answ|
|00002960| 65 72 20 69 74 0d 65 78 | 69 74 20 74 6f 20 68 79 |er it.ex|it to hy|
|00002970| 70 65 72 43 61 72 64 0d | 65 6e 64 20 69 66 0d 65 |perCard.|end if.e|
|00002980| 6e 64 20 69 66 0d 65 6e | 64 20 75 73 65 53 74 61 |nd if.en|d useSta|
|00002990| 63 6b 0d 0d 0d 6f 6e 20 | 72 65 6d 6f 76 65 50 69 |ck...on |removePi|
|000029a0| 63 74 20 77 68 61 74 50 | 69 63 74 0d 67 6c 6f 62 |ct whatP|ict.glob|
|000029b0| 61 6c 20 46 69 6c 65 4e | 61 6d 65 2c 52 65 73 49 |al FileN|ame,ResI|
|000029c0| 6e 66 6f 0d 61 6e 73 77 | 65 72 20 22 52 65 6d 6f |nfo.answ|er "Remo|
|000029d0| 76 65 20 50 49 43 54 20 | 22 20 26 20 77 6f 72 64 |ve PICT |" & word|
|000029e0| 20 33 20 74 6f 20 28 74 | 68 65 20 6e 75 6d 62 65 | 3 to (t|he numbe|
|000029f0| 72 20 6f 66 20 77 6f 72 | 64 73 20 6f 66 20 77 68 |r of wor|ds of wh|
|00002a00| 61 74 50 69 63 74 29 20 | 6f 66 20 77 68 61 74 50 |atPict) |of whatP|
|00002a10| 69 63 74 20 26 20 22 3f | 22 20 77 69 74 68 20 22 |ict & "?|" with "|
|00002a20| 4f 4b 22 20 6f 72 20 22 | 43 61 6e 63 65 6c 22 20 |OK" or "|Cancel" |
|00002a30| 2d 2d 20 c6 0d 69 66 20 | 69 74 20 69 73 20 22 43 |-- ..if |it is "C|
|00002a40| 61 6e 63 65 6c 22 20 74 | 68 65 6e 20 65 78 69 74 |ancel" t|hen exit|
|00002a50| 20 72 65 6d 6f 76 65 50 | 69 63 74 20 2d 2d 20 c6 | removeP|ict -- .|
|00002a60| 0d 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 73 65 74 |.lock sc|reen.set|
|00002a70| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|00002a80| 0d 52 65 73 52 65 6d 6f | 76 65 20 46 69 6c 65 4e |.ResRemo|ve FileN|
|00002a90| 61 6d 65 2c 74 68 65 52 | 65 73 54 79 70 65 28 77 |ame,theR|esType(w|
|00002aa0| 68 61 74 50 69 63 74 29 | 2c 74 68 65 52 65 73 49 |hatPict)|,theResI|
|00002ab0| 44 28 77 68 61 74 50 69 | 63 74 29 0d 70 75 74 20 |D(whatPi|ct).put |
|00002ac0| 74 68 65 20 72 65 73 75 | 6c 74 20 69 6e 74 6f 20 |the resu|lt into |
|00002ad0| 74 68 65 52 65 73 75 6c | 74 0d 69 66 20 74 68 65 |theResul|t.if the|
|00002ae0| 52 65 73 75 6c 74 20 69 | 73 20 6e 6f 74 20 65 6d |Result i|s not em|
|00002af0| 70 74 79 20 74 68 65 6e | 20 61 6e 73 77 65 72 20 |pty then| answer |
|00002b00| 74 68 65 52 65 73 75 6c | 74 0d 75 6e 6c 6f 63 6b |theResul|t.unlock|
|00002b10| 20 73 63 72 65 65 6e 0d | 65 6e 64 20 72 65 6d 6f | screen.|end remo|
|00002b20| 76 65 50 69 63 74 0d 0d | 0d 66 75 6e 63 74 69 6f |vePict..|.functio|
|00002b30| 6e 20 74 68 65 52 65 73 | 54 79 70 65 20 72 65 73 |n theRes|Type res|
|00002b40| 49 6e 66 6f 0d 69 66 20 | 74 68 65 20 6e 75 6d 62 |Info.if |the numb|
|00002b50| 65 72 20 6f 66 20 63 68 | 61 72 73 20 69 6e 20 77 |er of ch|ars in w|
|00002b60| 6f 72 64 20 31 20 6f 66 | 20 72 65 73 49 6e 66 6f |ord 1 of| resInfo|
|00002b70| 20 3d 20 33 0d 74 68 65 | 6e 20 72 65 74 75 72 6e | = 3.the|n return|
|00002b80| 20 77 6f 72 64 20 31 20 | 6f 66 20 72 65 73 49 6e | word 1 |of resIn|
|00002b90| 66 6f 20 26 20 73 70 61 | 63 65 0d 65 6c 73 65 20 |fo & spa|ce.else |
|00002ba0| 72 65 74 75 72 6e 20 77 | 6f 72 64 20 31 20 6f 66 |return w|ord 1 of|
|00002bb0| 20 72 65 73 49 6e 66 6f | 0d 65 6e 64 20 74 68 65 | resInfo|.end the|
|00002bc0| 52 65 73 54 79 70 65 0d | 0d 66 75 6e 63 74 69 6f |ResType.|.functio|
|00002bd0| 6e 20 74 68 65 52 65 73 | 49 44 20 72 65 73 49 6e |n theRes|ID resIn|
|00002be0| 66 6f 0d 72 65 74 75 72 | 6e 20 77 6f 72 64 20 32 |fo.retur|n word 2|
|00002bf0| 20 6f 66 20 72 65 73 49 | 6e 66 6f 0d 65 6e 64 20 | of resI|nfo.end |
|00002c00| 74 68 65 52 65 73 49 44 | 0d 0d 6f 6e 20 63 72 65 |theResID|..on cre|
|00002c10| 61 74 65 43 6f 6e 74 65 | 6e 74 73 0d 69 66 20 74 |ateConte|nts.if t|
|00002c20| 6f 6f 6c 73 53 74 61 63 | 6b 28 29 20 74 68 65 6e |oolsStac|k() then|
|00002c30| 20 65 78 69 74 20 63 72 | 65 61 74 65 43 6f 6e 74 | exit cr|eateCont|
|00002c40| 65 6e 74 73 0d 6c 6f 63 | 6b 20 73 63 72 65 65 6e |ents.loc|k screen|
|00002c50| 0d 6c 6f 63 6b 20 6d 65 | 73 73 61 67 65 73 0d 69 |.lock me|ssages.i|
|00002c60| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00002c70| 64 6f 77 20 28 69 74 65 | 6d 20 31 20 6f 66 20 66 |dow (ite|m 1 of f|
|00002c80| 6c 64 20 22 50 69 63 74 | 54 68 69 73 50 61 67 65 |ld "Pict|ThisPage|
|00002c90| 22 29 20 74 68 65 6e 0d | 63 6c 6f 73 65 20 77 69 |") then.|close wi|
|00002ca0| 6e 64 6f 77 20 28 69 74 | 65 6d 20 31 20 6f 66 20 |ndow (it|em 1 of |
|00002cb0| 66 6c 64 20 22 50 69 63 | 74 54 68 69 73 50 61 67 |fld "Pic|tThisPag|
|00002cc0| 65 22 29 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 65 |e").end |if.put e|
|00002cd0| 6d 70 74 79 20 69 6e 74 | 6f 20 6f 6c 64 43 68 61 |mpty int|o oldCha|
|00002ce0| 70 4e 61 6d 65 0d 72 65 | 70 65 61 74 20 77 69 74 |pName.re|peat wit|
|00002cf0| 68 20 78 20 3d 20 31 20 | 74 6f 20 28 74 68 65 20 |h x = 1 |to (the |
|00002d00| 6e 75 6d 62 65 72 20 6f | 66 20 63 64 73 20 6f 66 |number o|f cds of|
|00002d10| 20 74 68 69 73 20 73 74 | 61 63 6b 29 0d 67 6f 20 | this st|ack).go |
|00002d20| 63 64 20 78 0d 69 66 20 | 66 6c 64 20 22 41 72 74 |cd x.if |fld "Art|
|00002d30| 69 63 6c 65 4e 61 6d 65 | 22 20 69 73 20 65 6d 74 |icleName|" is emt|
|00002d40| 70 79 20 6f 72 20 66 6c | 64 20 22 41 72 74 69 63 |py or fl|d "Artic|
|00002d50| 6c 65 4e 61 6d 65 22 20 | 69 73 20 22 22 20 6f 72 |leName" |is "" or|
|00002d60| 20 66 6c 64 20 22 41 72 | 74 69 63 6c 65 4e 61 6d | fld "Ar|ticleNam|
|00002d70| 65 22 20 69 73 20 22 54 | 61 62 6c 65 20 6f 66 20 |e" is "T|able of |
|00002d80| 43 6f 6e 74 65 6e 74 73 | 22 20 74 68 65 6e 20 6e |Contents|" then n|
|00002d90| 65 78 74 20 72 65 70 65 | 61 74 0d 70 75 74 20 66 |ext repe|at.put f|
|00002da0| 6c 64 20 22 41 72 74 69 | 63 6c 65 4e 61 6d 65 22 |ld "Arti|cleName"|
|00002db0| 20 69 6e 74 6f 20 6e 65 | 77 43 68 61 70 4e 61 6d | into ne|wChapNam|
|00002dc0| 65 0d 69 66 20 6e 65 77 | 43 68 61 70 4e 61 6d 65 |e.if new|ChapName|
|00002dd0| 20 ad 20 6f 6c 64 43 68 | 61 70 4e 61 6d 65 20 74 | . oldCh|apName t|
|00002de0| 68 65 6e 0d 69 66 20 6f | 6c 64 43 68 61 70 4e 61 |hen.if o|ldChapNa|
|00002df0| 6d 65 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |me is no|t empty |
|00002e00| 74 68 65 6e 0d 70 75 74 | 20 6f 6c 64 43 68 61 70 |then.put| oldChap|
|00002e10| 4e 61 6d 65 20 26 20 72 | 65 74 75 72 6e 20 61 66 |Name & r|eturn af|
|00002e20| 74 65 72 20 63 68 61 70 | 4e 61 6d 65 73 0d 70 75 |ter chap|Names.pu|
|00002e30| 74 20 6f 6c 64 50 61 67 | 65 4e 75 6d 20 26 20 72 |t oldPag|eNum & r|
|00002e40| 65 74 75 72 6e 20 61 66 | 74 65 72 20 70 61 67 65 |eturn af|ter page|
|00002e50| 4e 75 6d 73 0d 65 6e 64 | 20 69 66 0d 70 75 74 20 |Nums.end| if.put |
|00002e60| 6e 65 77 43 68 61 70 4e | 61 6d 65 20 69 6e 74 6f |newChapN|ame into|
|00002e70| 20 6f 6c 64 43 68 61 70 | 4e 61 6d 65 0d 70 75 74 | oldChap|Name.put|
|00002e80| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 74 | the num|ber of t|
|00002e90| 68 69 73 20 63 64 20 69 | 6e 74 6f 20 6f 6c 64 50 |his cd i|nto oldP|
|00002ea0| 61 67 65 4e 75 6d 0d 65 | 6e 64 20 69 66 0d 65 6e |ageNum.e|nd if.en|
|00002eb0| 64 20 72 65 70 65 61 74 | 0d 70 75 74 20 6f 6c 64 |d repeat|.put old|
|00002ec0| 43 68 61 70 4e 61 6d 65 | 20 26 20 72 65 74 75 72 |ChapName| & retur|
|00002ed0| 6e 20 61 66 74 65 72 20 | 63 68 61 70 4e 61 6d 65 |n after |chapName|
|00002ee0| 73 0d 70 75 74 20 6f 6c | 64 50 61 67 65 4e 75 6d |s.put ol|dPageNum|
|00002ef0| 20 26 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 | & retur|n after |
|00002f00| 70 61 67 65 4e 75 6d 73 | 0d 61 72 74 69 63 6c 65 |pageNums|.article|
|00002f10| 43 6f 75 6e 74 20 63 68 | 61 70 4e 61 6d 65 73 2c |Count ch|apNames,|
|00002f20| 70 61 67 65 4e 75 6d 73 | 0d 65 6e 64 20 63 72 65 |pageNums|.end cre|
|00002f30| 61 74 65 43 6f 6e 74 65 | 6e 74 73 0d 0d 6f 6e 20 |ateConte|nts..on |
|00002f40| 61 72 74 69 63 6c 65 43 | 6f 75 6e 74 20 63 68 61 |articleC|ount cha|
|00002f50| 70 4e 61 6d 65 73 2c 70 | 61 67 65 4e 75 6d 73 2c |pNames,p|ageNums,|
|00002f60| 66 6c 64 54 79 70 65 0d | 70 75 74 20 74 68 65 20 |fldType.|put the |
|00002f70| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00002f80| 6f 66 20 63 68 61 70 4e | 61 6d 65 73 20 69 6e 74 |of chapN|ames int|
|00002f90| 6f 20 6c 69 6e 65 73 0d | 70 75 74 20 6f 70 61 71 |o lines.|put opaq|
|00002fa0| 75 65 20 69 6e 74 6f 20 | 66 6c 64 54 79 70 65 0d |ue into |fldType.|
|00002fb0| 69 66 20 74 68 65 20 72 | 65 63 74 20 6f 66 20 74 |if the r|ect of t|
|00002fc0| 68 69 73 20 63 64 20 69 | 73 20 22 30 2c 30 2c 33 |his cd i|s "0,0,3|
|00002fd0| 38 34 2c 33 34 34 22 20 | 74 68 65 6e 0d 69 66 20 |84,344" |then.if |
|00002fe0| 6c 69 6e 65 73 20 3c 20 | 31 31 20 74 68 65 6e 0d |lines < |11 then.|
|00002ff0| 70 75 74 20 31 20 69 6e | 74 6f 20 63 6f 6c 73 0d |put 1 in|to cols.|
|00003000| 70 75 74 20 32 30 20 69 | 6e 74 6f 20 68 65 69 67 |put 20 i|nto heig|
|00003010| 68 74 0d 70 75 74 20 31 | 32 20 69 6e 74 6f 20 73 |ht.put 1|2 into s|
|00003020| 69 7a 65 0d 65 6e 64 20 | 69 66 0d 69 66 20 6c 69 |ize.end |if.if li|
|00003030| 6e 65 73 20 3e 20 39 20 | 74 68 65 6e 0d 70 75 74 |nes > 9 |then.put|
|00003040| 20 31 38 20 69 6e 74 6f | 20 68 65 69 67 68 74 0d | 18 into| height.|
|00003050| 70 75 74 20 31 32 20 69 | 6e 74 6f 20 73 69 7a 65 |put 12 i|nto size|
|00003060| 0d 65 6e 64 20 69 66 0d | 69 66 20 6c 69 6e 65 73 |.end if.|if lines|
|00003070| 20 3e 20 31 32 20 74 68 | 65 6e 0d 70 75 74 20 31 | > 12 th|en.put 1|
|00003080| 38 20 69 6e 74 6f 20 68 | 65 69 67 68 74 0d 70 75 |8 into h|eight.pu|
|00003090| 74 20 31 32 20 69 6e 74 | 6f 20 73 69 7a 65 0d 70 |t 12 int|o size.p|
|000030a0| 75 74 20 73 63 72 6f 6c | 6c 69 6e 67 20 69 6e 74 |ut scrol|ling int|
|000030b0| 6f 20 66 6c 64 54 79 70 | 65 0d 65 6e 64 20 69 66 |o fldTyp|e.end if|
|000030c0| 0d 65 6c 73 65 0d 69 66 | 20 6c 69 6e 65 73 20 3c |.else.if| lines <|
|000030d0| 20 39 20 74 68 65 6e 0d | 70 75 74 20 32 38 20 69 | 9 then.|put 28 i|
|000030e0| 6e 74 6f 20 68 65 69 67 | 68 74 0d 70 75 74 20 31 |nto heig|ht.put 1|
|000030f0| 34 20 69 6e 74 6f 20 73 | 69 7a 65 0d 65 6e 64 20 |4 into s|ize.end |
|00003100| 69 66 0d 69 66 20 6c 69 | 6e 65 73 20 3e 20 38 20 |if.if li|nes > 8 |
|00003110| 61 6e 64 20 6c 69 6e 65 | 73 20 3c 20 31 32 20 74 |and line|s < 12 t|
|00003120| 68 65 6e 0d 70 75 74 20 | 32 30 20 69 6e 74 6f 20 |hen.put |20 into |
|00003130| 68 65 69 67 68 74 0d 70 | 75 74 20 31 34 20 69 6e |height.p|ut 14 in|
|00003140| 74 6f 20 73 69 7a 65 0d | 65 6e 64 20 69 66 0d 69 |to size.|end if.i|
|00003150| 66 20 6c 69 6e 65 73 20 | 3e 20 31 31 20 74 68 65 |f lines |> 11 the|
|00003160| 6e 0d 70 75 74 20 32 30 | 20 69 6e 74 6f 20 68 65 |n.put 20| into he|
|00003170| 69 67 68 74 0d 70 75 74 | 20 31 34 20 69 6e 74 6f |ight.put| 14 into|
|00003180| 20 73 69 7a 65 0d 70 75 | 74 20 73 63 72 6f 6c 6c | size.pu|t scroll|
|00003190| 69 6e 67 20 69 6e 74 6f | 20 66 6c 64 54 79 70 65 |ing into| fldType|
|000031a0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 6d |.end if.|end if.m|
|000031b0| 61 6b 65 54 61 62 6c 65 | 20 63 68 61 70 4e 61 6d |akeTable| chapNam|
|000031c0| 65 73 2c 70 61 67 65 4e | 75 6d 73 2c 6c 69 6e 65 |es,pageN|ums,line|
|000031d0| 73 2c 63 6f 6c 73 2c 73 | 69 7a 65 2c 68 65 69 67 |s,cols,s|ize,heig|
|000031e0| 68 74 2c 77 61 72 6e 69 | 6e 67 2c 66 6c 64 54 79 |ht,warni|ng,fldTy|
|000031f0| 70 65 0d 65 6e 64 20 61 | 72 74 69 63 6c 65 43 6f |pe.end a|rticleCo|
|00003200| 75 6e 74 0d 0d 0d 6f 6e | 20 73 65 74 46 6f 6e 74 |unt...on| setFont|
|00003210| 0d 61 6e 73 77 65 72 20 | 22 43 68 61 6e 67 69 6e |.answer |"Changin|
|00003220| 67 20 74 68 65 20 6d 61 | 67 61 7a 69 6e 65 20 74 |g the ma|gazine t|
|00003230| 65 78 74 20 66 6f 6e 74 | 20 63 68 61 6e 67 65 73 |ext font| changes|
|00003240| 20 74 68 65 20 66 6f 6e | 74 20 6f 6e 20 61 6c 6c | the fon|t on all|
|00003250| 20 70 61 67 65 73 2e 22 | 20 77 69 74 68 20 22 43 | pages."| with "C|
|00003260| 61 6e 63 65 6c 22 20 6f | 72 20 22 4f 4b 22 0d 69 |ancel" o|r "OK".i|
|00003270| 66 20 69 74 20 69 73 20 | 22 4f 4b 22 20 74 68 65 |f it is |"OK" the|
|00003280| 6e 0d 70 75 74 20 6c 69 | 73 74 49 6e 73 74 61 6c |n.put li|stInstal|
|00003290| 6c 65 64 46 6f 6e 74 73 | 28 29 20 69 6e 74 6f 20 |ledFonts|() into |
|000032a0| 66 6f 6e 74 4c 69 73 74 | 0d 67 65 74 20 73 68 6f |fontList|.get sho|
|000032b0| 77 4c 69 73 74 28 66 6f | 6e 74 4c 69 73 74 2c 22 |wList(fo|ntList,"|
|000032c0| 53 65 6c 65 63 74 20 4d | 61 67 61 7a 69 6e 65 20 |Select M|agazine |
|000032d0| 46 6f 6e 74 22 2c 74 72 | 75 65 2c 66 61 6c 73 65 |Font",tr|ue,false|
|000032e0| 2c 22 53 65 6c 65 63 74 | 2c 43 61 6e 63 65 6c 22 |,"Select|,Cancel"|
|000032f0| 2c 31 29 0d 69 66 20 6c | 69 6e 65 20 31 20 6f 66 |,1).if l|ine 1 of|
|00003300| 20 69 74 20 69 73 20 22 | 53 65 6c 65 63 74 22 20 | it is "|Select" |
|00003310| 74 68 65 6e 0d 73 65 74 | 20 74 68 65 20 74 65 78 |then.set| the tex|
|00003320| 74 46 6f 6e 74 20 6f 66 | 20 66 6c 64 20 22 42 6f |tFont of| fld "Bo|
|00003330| 64 79 22 20 74 6f 20 6c | 69 6e 65 20 28 6c 69 6e |dy" to l|ine (lin|
|00003340| 65 20 32 20 6f 66 20 69 | 74 29 20 6f 66 20 66 6f |e 2 of i|t) of fo|
|00003350| 6e 74 4c 69 73 74 0d 65 | 6e 64 20 69 66 0d 65 6e |ntList.e|nd if.en|
|00003360| 64 20 69 66 0d 65 6e 64 | 20 73 65 74 46 6f 6e 74 |d if.end| setFont|
|00003370| 0d 0d 6f 6e 20 73 65 74 | 53 69 7a 65 0d 61 6e 73 |..on set|Size.ans|
|00003380| 77 65 72 20 22 43 68 61 | 6e 67 69 6e 67 20 74 68 |wer "Cha|nging th|
|00003390| 65 20 6d 61 67 61 7a 69 | 6e 65 20 74 65 78 74 20 |e magazi|ne text |
|000033a0| 73 69 7a 65 20 63 68 61 | 6e 67 65 73 20 74 68 65 |size cha|nges the|
|000033b0| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 74 65 78 | size of| the tex|
|000033c0| 74 20 6f 6e 20 61 6c 6c | 20 70 61 67 65 73 2e 22 |t on all| pages."|
|000033d0| 20 77 69 74 68 20 22 43 | 61 6e 63 65 6c 22 20 6f | with "C|ancel" o|
|000033e0| 72 20 22 4f 4b 22 0d 69 | 66 20 69 74 20 69 73 20 |r "OK".i|f it is |
|000033f0| 22 4f 4b 22 20 74 68 65 | 6e 0d 70 75 74 20 74 68 |"OK" the|n.put th|
|00003400| 65 20 74 65 78 74 48 65 | 69 67 68 74 20 6f 66 20 |e textHe|ight of |
|00003410| 66 6c 64 20 22 42 6f 64 | 79 22 20 69 6e 74 6f 20 |fld "Bod|y" into |
|00003420| 6f 6c 64 4c 65 61 64 0d | 70 75 74 20 22 31 30 22 |oldLead.|put "10"|
|00003430| 20 26 20 72 65 74 75 72 | 6e 20 26 20 22 31 32 22 | & retur|n & "12"|
|00003440| 20 26 20 72 65 74 75 72 | 6e 20 26 20 22 31 34 22 | & retur|n & "14"|
|00003450| 20 69 6e 74 6f 20 66 6f | 6e 74 53 69 7a 65 73 0d | into fo|ntSizes.|
|00003460| 67 65 74 20 73 68 6f 77 | 4c 69 73 74 28 66 6f 6e |get show|List(fon|
|00003470| 74 53 69 7a 65 73 2c 22 | 53 65 6c 65 63 74 20 4d |tSizes,"|Select M|
|00003480| 61 67 61 7a 69 6e 65 20 | 54 65 78 74 20 53 69 7a |agazine |Text Siz|
|00003490| 65 22 2c 74 72 75 65 2c | 66 61 6c 73 65 2c 22 53 |e",true,|false,"S|
|000034a0| 65 6c 65 63 74 2c 43 61 | 6e 63 65 6c 22 2c 31 29 |elect,Ca|ncel",1)|
|000034b0| 0d 69 66 20 6c 69 6e 65 | 20 31 20 6f 66 20 69 74 |.if line| 1 of it|
|000034c0| 20 69 73 20 22 53 65 6c | 65 63 74 22 20 74 68 65 | is "Sel|ect" the|
|000034d0| 6e 0d 73 65 74 20 74 68 | 65 20 74 65 78 74 53 69 |n.set th|e textSi|
|000034e0| 7a 65 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 |ze of fl|d "Body"|
|000034f0| 20 74 6f 20 6c 69 6e 65 | 20 28 6c 69 6e 65 20 32 | to line| (line 2|
|00003500| 20 6f 66 20 69 74 29 20 | 6f 66 20 66 6f 6e 74 53 | of it) |of fontS|
|00003510| 69 7a 65 73 0d 73 65 74 | 20 74 68 65 20 74 65 78 |izes.set| the tex|
|00003520| 74 48 65 69 67 68 74 20 | 6f 66 20 66 6c 64 20 22 |tHeight |of fld "|
|00003530| 42 6f 64 79 22 20 74 6f | 20 6f 6c 64 4c 65 61 64 |Body" to| oldLead|
|00003540| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 65 |.end if.|end if.e|
|00003550| 6e 64 20 73 65 74 53 69 | 7a 65 0d 0d 6f 6e 20 73 |nd setSi|ze..on s|
|00003560| 65 74 4c 65 61 64 0d 61 | 6e 73 77 65 72 20 22 43 |etLead.a|nswer "C|
|00003570| 68 61 6e 67 69 6e 67 20 | 74 68 65 20 6d 61 67 61 |hanging |the maga|
|00003580| 7a 69 6e 65 20 74 65 78 | 74 20 6c 65 61 64 69 6e |zine tex|t leadin|
|00003590| 67 20 63 68 61 6e 67 65 | 73 20 74 68 65 20 6c 65 |g change|s the le|
|000035a0| 61 64 69 6e 67 20 6f 66 | 20 74 68 65 20 74 65 78 |ading of| the tex|
|000035b0| 74 20 6f 6e 20 61 6c 6c | 20 70 61 67 65 73 2e 22 |t on all| pages."|
|000035c0| 20 77 69 74 68 20 22 43 | 61 6e 63 65 6c 22 20 6f | with "C|ancel" o|
|000035d0| 72 20 22 4f 4b 22 0d 69 | 66 20 69 74 20 69 73 20 |r "OK".i|f it is |
|000035e0| 22 4f 4b 22 20 74 68 65 | 6e 0d 70 75 74 20 22 31 |"OK" the|n.put "1|
|000035f0| 32 22 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 31 |2" & ret|urn & "1|
|00003600| 34 22 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 31 |4" & ret|urn & "1|
|00003610| 36 22 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 31 |6" & ret|urn & "1|
|00003620| 38 22 20 69 6e 74 6f 20 | 66 6f 6e 74 4c 65 61 64 |8" into |fontLead|
|00003630| 73 0d 67 65 74 20 73 68 | 6f 77 4c 69 73 74 28 66 |s.get sh|owList(f|
|00003640| 6f 6e 74 4c 65 61 64 73 | 2c 22 53 65 6c 65 63 74 |ontLeads|,"Select|
|00003650| 20 4d 61 67 61 7a 69 6e | 65 20 54 65 78 74 20 4c | Magazin|e Text L|
|00003660| 65 61 64 69 6e 67 22 2c | 74 72 75 65 2c 66 61 6c |eading",|true,fal|
|00003670| 73 65 2c 22 53 65 6c 65 | 63 74 2c 43 61 6e 63 65 |se,"Sele|ct,Cance|
|00003680| 6c 22 2c 31 29 0d 69 66 | 20 6c 69 6e 65 20 31 20 |l",1).if| line 1 |
|00003690| 6f 66 20 69 74 20 69 73 | 20 22 53 65 6c 65 63 74 |of it is| "Select|
|000036a0| 22 20 74 68 65 6e 0d 73 | 65 74 20 74 68 65 20 74 |" then.s|et the t|
|000036b0| 65 78 74 48 65 69 67 68 | 74 20 6f 66 20 66 6c 64 |extHeigh|t of fld|
|000036c0| 20 22 42 6f 64 79 22 20 | 74 6f 20 6c 69 6e 65 20 | "Body" |to line |
|000036d0| 28 6c 69 6e 65 20 32 20 | 6f 66 20 69 74 29 20 6f |(line 2 |of it) o|
|000036e0| 66 20 66 6f 6e 74 4c 65 | 61 64 73 0d 65 6e 64 20 |f fontLe|ads.end |
|000036f0| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 73 65 |if.end i|f.end se|
|00003700| 74 4c 65 61 64 0d 0d 6f | 6e 20 6d 61 6b 65 49 6e |tLead..o|n makeIn|
|00003710| 64 65 6e 74 0d 69 66 20 | 74 68 65 20 73 65 6c 65 |dent.if |the sele|
|00003720| 63 74 65 64 43 68 75 6e | 6b 20 69 73 20 65 6d 70 |ctedChun|k is emp|
|00003730| 74 79 20 74 68 65 6e 20 | 65 78 69 74 20 6d 61 6b |ty then |exit mak|
|00003740| 65 49 6e 64 65 6e 74 0d | 70 75 74 20 77 6f 72 64 |eIndent.|put word|
|00003750| 20 32 20 6f 66 20 74 68 | 65 20 73 65 6c 65 63 74 | 2 of th|e select|
|00003760| 65 64 43 68 75 6e 6b 20 | 69 6e 74 6f 20 63 6c 69 |edChunk |into cli|
|00003770| 63 6b 43 68 61 72 0d 70 | 75 74 20 74 61 62 20 26 |ckChar.p|ut tab &|
|00003780| 20 74 61 62 20 26 20 74 | 61 62 20 26 20 74 61 62 | tab & t|ab & tab|
|00003790| 20 26 20 74 61 62 20 26 | 20 74 61 62 20 62 65 66 | & tab &| tab bef|
|000037a0| 6f 72 65 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 |ore the |selected|
|000037b0| 4c 69 6e 65 0d 73 65 6c | 65 63 74 20 62 65 66 6f |Line.sel|ect befo|
|000037c0| 72 65 20 63 68 61 72 20 | 63 6c 69 63 6b 43 68 61 |re char |clickCha|
|000037d0| 72 20 2b 20 36 20 6f 66 | 20 66 6c 64 20 22 42 6f |r + 6 of| fld "Bo|
|000037e0| 64 79 22 0d 65 6e 64 20 | 6d 61 6b 65 49 6e 64 65 |dy".end |makeInde|
|000037f0| 6e 74 0d 0d 6f 6e 20 64 | 65 6c 65 74 65 49 6e 64 |nt..on d|eleteInd|
|00003800| 65 6e 74 0d 70 75 74 20 | 31 20 69 6e 74 6f 20 78 |ent.put |1 into x|
|00003810| 0d 70 75 74 20 77 6f 72 | 64 20 32 20 6f 66 20 74 |.put wor|d 2 of t|
|00003820| 68 65 20 73 65 6c 65 63 | 74 65 64 4c 69 6e 65 20 |he selec|tedLine |
|00003830| 69 6e 74 6f 20 63 6c 69 | 63 6b 48 65 72 65 0d 70 |into cli|ckHere.p|
|00003840| 75 74 20 77 6f 72 64 20 | 32 20 6f 66 20 74 68 65 |ut word |2 of the|
|00003850| 20 73 65 6c 65 63 74 65 | 64 43 68 75 6e 6b 20 69 | selecte|dChunk i|
|00003860| 6e 74 6f 20 63 6c 69 63 | 6b 43 68 61 72 0d 72 65 |nto clic|kChar.re|
|00003870| 70 65 61 74 0d 69 66 20 | 63 68 61 72 20 78 20 6f |peat.if |char x o|
|00003880| 66 20 6c 69 6e 65 20 63 | 6c 69 63 6b 48 65 72 65 |f line c|lickHere|
|00003890| 20 6f 66 20 66 6c 64 20 | 22 42 6f 64 79 22 20 69 | of fld |"Body" i|
|000038a0| 73 20 22 20 22 20 74 68 | 65 6e 0d 61 64 64 20 31 |s " " th|en.add 1|
|000038b0| 20 74 6f 20 78 0d 65 6c | 73 65 0d 65 78 69 74 20 | to x.el|se.exit |
|000038c0| 72 65 70 65 61 74 0d 65 | 6e 64 20 69 66 0d 65 6e |repeat.e|nd if.en|
|000038d0| 64 20 72 65 70 65 61 74 | 0d 69 66 20 63 68 61 72 |d repeat|.if char|
|000038e0| 20 78 20 74 6f 20 78 20 | 2b 20 35 20 6f 66 20 6c | x to x |+ 5 of l|
|000038f0| 69 6e 65 20 63 6c 69 63 | 6b 48 65 72 65 20 6f 66 |ine clic|kHere of|
|00003900| 20 66 6c 64 20 22 42 6f | 64 79 22 20 69 73 20 28 | fld "Bo|dy" is (|
|00003910| 74 61 62 20 26 20 74 61 | 62 20 26 20 74 61 62 20 |tab & ta|b & tab |
|00003920| 26 20 74 61 62 20 26 20 | 74 61 62 20 26 20 74 61 |& tab & |tab & ta|
|00003930| 62 29 20 74 68 65 6e 0d | 70 75 74 20 65 6d 70 74 |b) then.|put empt|
|00003940| 79 20 69 6e 74 6f 20 63 | 68 61 72 20 78 20 74 6f |y into c|har x to|
|00003950| 20 78 20 2b 20 35 20 6f | 66 20 6c 69 6e 65 20 63 | x + 5 o|f line c|
|00003960| 6c 69 63 6b 48 65 72 65 | 20 6f 66 20 66 6c 64 20 |lickHere| of fld |
|00003970| 22 42 6f 64 79 22 0d 73 | 65 6c 65 63 74 20 62 65 |"Body".s|elect be|
|00003980| 66 6f 72 65 20 63 68 61 | 72 20 63 6c 69 63 6b 43 |fore cha|r clickC|
|00003990| 68 61 72 20 2d 20 36 20 | 6f 66 20 66 6c 64 20 22 |har - 6 |of fld "|
|000039a0| 42 6f 64 79 22 0d 65 6c | 73 65 0d 73 65 6c 65 63 |Body".el|se.selec|
|000039b0| 74 20 62 65 66 6f 72 65 | 20 63 68 61 72 20 63 6c |t before| char cl|
|000039c0| 69 63 6b 43 68 61 72 20 | 6f 66 20 66 6c 64 20 22 |ickChar |of fld "|
|000039d0| 42 6f 64 79 22 0d 65 6e | 64 20 69 66 0d 65 6e 64 |Body".en|d if.end|
|000039e0| 20 64 65 6c 65 74 65 49 | 6e 64 65 6e 74 0d 0d 0d | deleteI|ndent...|
|000039f0| 6f 6e 20 6d 61 6b 65 54 | 61 62 6c 65 20 63 68 61 |on makeT|able cha|
|00003a00| 70 4e 61 6d 65 73 2c 70 | 61 67 65 4e 75 6d 73 2c |pNames,p|ageNums,|
|00003a10| 6c 69 6e 65 73 2c 63 6f | 6c 73 2c 73 69 7a 65 2c |lines,co|ls,size,|
|00003a20| 68 65 69 67 68 74 2c 77 | 61 72 6e 69 6e 67 2c 66 |height,w|arning,f|
|00003a30| 6c 64 54 79 70 65 0d 67 | 6f 20 63 64 20 22 54 61 |ldType.g|o cd "Ta|
|00003a40| 62 6c 65 20 6f 66 20 43 | 6f 6e 74 65 6e 74 73 22 |ble of C|ontents"|
|00003a50| 0d 69 66 20 66 6c 64 54 | 79 70 65 20 69 73 20 73 |.if fldT|ype is s|
|00003a60| 63 72 6f 6c 6c 69 6e 67 | 20 74 68 65 6e 0d 73 68 |crolling| then.sh|
|00003a70| 6f 77 20 62 74 6e 20 22 | 75 70 42 74 6e 22 0d 73 |ow btn "|upBtn".s|
|00003a80| 68 6f 77 20 62 74 6e 20 | 22 64 6f 77 6e 42 74 6e |how btn |"downBtn|
|00003a90| 22 0d 65 6c 73 65 0d 68 | 69 64 65 20 62 74 6e 20 |".else.h|ide btn |
|00003aa0| 22 75 70 42 74 6e 22 0d | 68 69 64 65 20 62 74 6e |"upBtn".|hide btn|
|00003ab0| 20 22 64 6f 77 6e 42 74 | 6e 22 0d 65 6e 64 20 69 | "downBt|n".end i|
|00003ac0| 66 0d 70 75 74 20 22 54 | 61 62 6c 65 31 2c 50 61 |f.put "T|able1,Pa|
|00003ad0| 67 65 31 22 20 69 6e 74 | 6f 20 66 6c 64 49 74 65 |ge1" int|o fldIte|
|00003ae0| 6d 73 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 79 |ms.repea|t with y|
|00003af0| 20 3d 20 31 20 74 6f 20 | 28 74 68 65 20 6e 75 6d | = 1 to |(the num|
|00003b00| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 6f 66 20 |ber of i|tems of |
|00003b10| 66 6c 64 49 74 65 6d 73 | 29 0d 70 75 74 20 65 6d |fldItems|).put em|
|00003b20| 70 74 79 20 69 6e 74 6f | 20 63 64 20 66 6c 64 20 |pty into| cd fld |
|00003b30| 28 69 74 65 6d 20 79 20 | 6f 66 20 66 6c 64 49 74 |(item y |of fldIt|
|00003b40| 65 6d 73 29 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |ems).end| repeat.|
|00003b50| 72 65 70 65 61 74 20 77 | 69 74 68 20 79 20 3d 20 |repeat w|ith y = |
|00003b60| 31 20 74 6f 20 28 74 68 | 65 20 6e 75 6d 62 65 72 |1 to (th|e number|
|00003b70| 20 6f 66 20 69 74 65 6d | 73 20 6f 66 20 66 6c 64 | of item|s of fld|
|00003b80| 49 74 65 6d 73 29 0d 73 | 65 74 20 74 68 65 20 74 |Items).s|et the t|
|00003b90| 65 78 74 53 69 7a 65 20 | 6f 66 20 63 64 20 66 6c |extSize |of cd fl|
|00003ba0| 64 20 28 69 74 65 6d 20 | 79 20 6f 66 20 66 6c 64 |d (item |y of fld|
|00003bb0| 49 74 65 6d 73 29 20 74 | 6f 20 73 69 7a 65 0d 73 |Items) t|o size.s|
|00003bc0| 65 74 20 74 68 65 20 74 | 65 78 74 48 65 69 67 68 |et the t|extHeigh|
|00003bd0| 74 20 6f 66 20 63 64 20 | 66 6c 64 20 28 69 74 65 |t of cd |fld (ite|
|00003be0| 6d 20 79 20 6f 66 20 66 | 6c 64 49 74 65 6d 73 29 |m y of f|ldItems)|
|00003bf0| 20 74 6f 20 68 65 69 67 | 68 74 0d 73 65 74 20 74 | to heig|ht.set t|
|00003c00| 68 65 20 73 74 79 6c 65 | 20 6f 66 20 63 64 20 66 |he style| of cd f|
|00003c10| 6c 64 20 28 69 74 65 6d | 20 79 20 6f 66 20 66 6c |ld (item| y of fl|
|00003c20| 64 49 74 65 6d 73 29 20 | 74 6f 20 66 6c 64 54 79 |dItems) |to fldTy|
|00003c30| 70 65 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 70 75 |pe.end r|epeat.pu|
|00003c40| 74 20 63 68 61 70 4e 61 | 6d 65 73 20 69 6e 74 6f |t chapNa|mes into|
|00003c50| 20 63 64 20 66 6c 64 20 | 22 54 61 62 6c 65 31 22 | cd fld |"Table1"|
|00003c60| 0d 70 75 74 20 70 61 67 | 65 4e 75 6d 73 20 69 6e |.put pag|eNums in|
|00003c70| 74 6f 20 63 64 20 66 6c | 64 20 22 50 61 67 65 31 |to cd fl|d "Page1|
|00003c80| 22 0d 65 6e 64 20 6d 61 | 6b 65 54 61 62 6c 65 0d |".end ma|keTable.|
|00003c90| 0d 0d 6f 6e 20 6f 70 65 | 6e 53 74 61 63 6b 0d 69 |..on ope|nStack.i|
|00003ca0| 66 20 77 72 6f 6e 67 53 | 74 61 63 6b 28 29 20 74 |f wrongS|tack() t|
|00003cb0| 68 65 6e 20 70 61 73 73 | 20 6f 70 65 6e 53 74 61 |hen pass| openSta|
|00003cc0| 63 6b 0d 69 66 20 22 4d | 61 67 4d 61 6b 65 72 54 |ck.if "M|agMakerT|
|00003cd0| 6f 6f 6c 73 20 42 22 20 | 69 73 20 69 6e 20 74 68 |ools B" |is in th|
|00003ce0| 65 20 73 74 61 63 6b 73 | 49 6e 55 73 65 20 74 68 |e stacks|InUse th|
|00003cf0| 65 6e 20 73 74 6f 70 20 | 75 73 69 6e 67 20 73 74 |en stop |using st|
|00003d00| 61 63 6b 20 22 4d 61 67 | 4d 61 6b 65 72 54 6f 6f |ack "Mag|MakerToo|
|00003d10| 6c 73 20 42 22 0d 61 6e | 73 77 65 72 20 22 54 68 |ls B".an|swer "Th|
|00003d20| 65 20 4d 61 67 4d 61 6b | 65 72 20 54 6f 6f 6c 73 |e MagMak|er Tools|
|00003d30| 20 41 20 61 6e 64 20 42 | 20 73 74 61 63 6b 73 20 | A and B| stacks |
|00003d40| 68 6f 6c 64 20 74 68 65 | 20 73 63 72 69 70 74 73 |hold the| scripts|
|00003d50| 20 75 73 65 64 20 66 6f | 72 20 63 72 65 61 74 69 | used fo|r creati|
|00003d60| 6e 67 20 4d 61 67 4d 61 | 6b 65 72 20 6d 61 67 61 |ng MagMa|ker maga|
|00003d70| 7a 69 6e 65 73 2e 22 20 | 26 20 72 65 74 75 72 6e |zines." |& return|
|00003d80| 20 26 20 72 65 74 75 72 | 6e 20 26 20 c2 0d 22 59 | & retur|n & .."Y|
|00003d90| 6f 75 20 64 6f 6e d5 74 | 20 6e 65 65 64 20 74 6f |ou don.t| need to|
|00003da0| 20 6f 70 65 6e 20 74 68 | 65 73 65 20 73 74 61 63 | open th|ese stac|
|00003db0| 6b 73 2c 20 6a 75 73 74 | 20 70 75 74 20 74 68 65 |ks, just| put the|
|00003dc0| 6d 20 69 6e 74 6f 20 74 | 68 65 20 73 61 6d 65 20 |m into t|he same |
|00003dd0| 66 6f 6c 64 65 72 20 61 | 73 20 79 6f 75 72 20 4d |folder a|s your M|
|00003de0| 61 67 4d 61 6b 65 72 20 | 6d 61 67 61 7a 69 6e 65 |agMaker |magazine|
|00003df0| 2c 20 61 6e 64 20 6f 70 | 65 6e 20 74 68 65 20 6d |, and op|en the m|
|00003e00| 61 67 61 7a 69 6e 65 2e | 22 0d 65 6e 64 20 6f 70 |agazine.|".end op|
|00003e10| 65 6e 53 74 61 63 6b 0d | 0d 6f 6e 20 63 6c 6f 73 |enStack.|.on clos|
|00003e20| 65 53 74 61 63 6b 0d 69 | 66 20 77 72 6f 6e 67 53 |eStack.i|f wrongS|
|00003e30| 74 61 63 6b 28 29 20 74 | 68 65 6e 20 70 61 73 73 |tack() t|hen pass|
|00003e40| 20 63 6c 6f 73 65 53 74 | 61 63 6b 0d 69 66 20 22 | closeSt|ack.if "|
|00003e50| 4d 61 67 4d 61 6b 65 72 | 54 6f 6f 6c 73 20 42 22 |MagMaker|Tools B"|
|00003e60| 20 69 73 20 69 6e 20 74 | 68 65 20 73 74 61 63 6b | is in t|he stack|
|00003e70| 73 49 6e 55 73 65 20 74 | 68 65 6e 20 73 74 6f 70 |sInUse t|hen stop|
|00003e80| 20 75 73 69 6e 67 20 73 | 74 61 63 6b 20 22 4d 61 | using s|tack "Ma|
|00003e90| 67 4d 61 6b 65 72 54 6f | 6f 6c 73 20 42 22 0d 69 |gMakerTo|ols B".i|
|00003ea0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00003eb0| 64 6f 77 20 22 4d 61 67 | 4d 61 6b 65 72 54 6f 6f |dow "Mag|MakerToo|
|00003ec0| 6c 73 20 42 22 20 74 68 | 65 6e 20 63 6c 6f 73 65 |ls B" th|en close|
|00003ed0| 20 77 69 6e 64 6f 77 20 | 22 4d 61 67 4d 61 6b 65 | window |"MagMake|
|00003ee0| 72 54 6f 6f 6c 73 20 42 | 22 0d 65 6e 64 20 63 6c |rTools B|".end cl|
|00003ef0| 6f 73 65 53 74 61 63 6b | 0d 0d 6f 6e 20 73 75 73 |oseStack|..on sus|
|00003f00| 70 65 6e 64 0d 63 6c 6f | 73 65 53 74 61 63 6b 0d |pend.clo|seStack.|
|00003f10| 65 6e 64 20 73 75 73 70 | 65 6e 64 0d 0d 6f 6e 20 |end susp|end..on |
|00003f20| 73 75 73 70 65 6e 64 53 | 74 61 63 6b 0d 63 6c 6f |suspendS|tack.clo|
|00003f30| 73 65 53 74 61 63 6b 0d | 65 6e 64 20 73 75 73 70 |seStack.|end susp|
|00003f40| 65 6e 64 53 74 61 63 6b | 0d 0d 0d 66 75 6e 63 74 |endStack|...funct|
|00003f50| 69 6f 6e 20 77 72 6f 6e | 67 53 74 61 63 6b 0d 67 |ion wron|gStack.g|
|00003f60| 65 74 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |et the v|alue of |
|00003f70| 77 6f 72 64 20 32 20 6f | 66 20 74 68 65 20 6c 6f |word 2 o|f the lo|
|00003f80| 6e 67 20 6e 61 6d 65 20 | 6f 66 20 6d 65 0d 72 65 |ng name |of me.re|
|00003f90| 74 75 72 6e 20 28 69 74 | 20 69 73 20 6e 6f 74 20 |turn (it| is not |
|00003fa0| 6c 69 6e 65 20 31 20 6f | 66 20 74 68 65 20 73 74 |line 1 o|f the st|
|00003fb0| 61 63 6b 73 29 0d 65 6e | 64 20 77 72 6f 6e 67 53 |acks).en|d wrongS|
|00003fc0| 74 61 63 6b 0d 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |tack...f|unction |
|00003fd0| 63 6c 65 61 6e 44 61 73 | 68 65 73 20 77 68 61 74 |cleanDas|hes what|
|00003fe0| 54 65 78 74 0d 72 65 70 | 65 61 74 20 77 69 74 68 |Text.rep|eat with|
|00003ff0| 20 78 20 3d 20 31 20 74 | 6f 20 74 68 65 20 6e 75 | x = 1 t|o the nu|
|00004000| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 6f 66 |mber of |lines of|
|00004010| 20 77 68 61 74 54 65 78 | 74 0d 69 66 20 22 2d 22 | whatTex|t.if "-"|
|00004020| 20 69 73 20 74 68 65 20 | 6c 61 73 74 20 63 68 61 | is the |last cha|
|00004030| 72 20 6f 66 20 6c 69 6e | 65 20 78 20 6f 66 20 77 |r of lin|e x of w|
|00004040| 68 61 74 54 65 78 74 20 | 74 68 65 6e 0d 64 65 6c |hatText |then.del|
|00004050| 65 74 65 20 74 68 65 20 | 6c 61 73 74 20 63 68 61 |ete the |last cha|
|00004060| 72 20 6f 66 20 6c 69 6e | 65 20 78 20 6f 66 20 77 |r of lin|e x of w|
|00004070| 68 61 74 54 65 78 74 0d | 70 75 74 20 6c 69 6e 65 |hatText.|put line|
|00004080| 20 78 20 6f 66 20 77 68 | 61 74 54 65 78 74 20 69 | x of wh|atText i|
|00004090| 6e 74 6f 20 68 6f 6c 64 | 4c 69 6e 65 0d 70 75 74 |nto hold|Line.put|
|000040a0| 20 68 6f 6c 64 4c 69 6e | 65 20 62 65 66 6f 72 65 | holdLin|e before|
|000040b0| 20 6c 69 6e 65 20 78 20 | 2b 20 31 20 6f 66 20 77 | line x |+ 1 of w|
|000040c0| 68 61 74 54 65 78 74 0d | 64 65 6c 65 74 65 20 6c |hatText.|delete l|
|000040d0| 69 6e 65 20 78 20 6f 66 | 20 77 68 61 74 54 65 78 |ine x of| whatTex|
|000040e0| 74 0d 65 6e 64 20 69 66 | 0d 69 66 20 22 2d 22 20 |t.end if|.if "-" |
|000040f0| 69 73 20 69 6e 20 6c 69 | 6e 65 20 78 20 6f 66 20 |is in li|ne x of |
|00004100| 77 68 61 74 54 65 78 74 | 20 74 68 65 6e 0d 72 65 |whatText| then.re|
|00004110| 70 65 61 74 20 77 69 74 | 68 20 79 20 3d 20 31 20 |peat wit|h y = 1 |
|00004120| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|00004130| 20 63 68 61 72 73 20 6f | 66 20 77 68 61 74 54 65 | chars o|f whatTe|
|00004140| 78 74 0d 69 66 20 63 68 | 61 72 20 79 20 74 6f 20 |xt.if ch|ar y to |
|00004150| 79 20 2b 20 31 20 6f 66 | 20 6c 69 6e 65 20 78 20 |y + 1 of| line x |
|00004160| 6f 66 20 77 68 61 74 54 | 65 78 74 20 69 73 20 22 |of whatT|ext is "|
|00004170| 2d 20 22 20 74 68 65 6e | 0d 70 75 74 20 22 22 20 |- " then|.put "" |
|00004180| 69 6e 74 6f 20 63 68 61 | 72 20 79 20 74 6f 20 79 |into cha|r y to y|
|00004190| 20 2b 20 31 20 6f 66 20 | 6c 69 6e 65 20 78 20 6f | + 1 of |line x o|
|000041a0| 66 20 77 68 61 74 54 65 | 78 74 0d 70 75 74 20 6c |f whatTe|xt.put l|
|000041b0| 69 6e 65 20 78 20 6f 66 | 20 77 68 61 74 54 65 78 |ine x of| whatTex|
|000041c0| 74 20 69 6e 74 6f 20 68 | 6f 6c 64 4c 69 6e 65 0d |t into h|oldLine.|
|000041d0| 70 75 74 20 68 6f 6c 64 | 4c 69 6e 65 20 62 65 66 |put hold|Line bef|
|000041e0| 6f 72 65 20 6c 69 6e 65 | 20 78 20 2b 20 31 20 6f |ore line| x + 1 o|
|000041f0| 66 20 77 68 61 74 54 65 | 78 74 0d 64 65 6c 65 74 |f whatTe|xt.delet|
|00004200| 65 20 6c 69 6e 65 20 78 | 20 6f 66 20 77 68 61 74 |e line x| of what|
|00004210| 54 65 78 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |Text.end| if.end |
|00004220| 72 65 70 65 61 74 0d 65 | 6e 64 20 69 66 0d 65 6e |repeat.e|nd if.en|
|00004230| 64 20 72 65 70 65 61 74 | 0d 72 65 74 75 72 6e 20 |d repeat|.return |
|00004240| 77 68 61 74 54 65 78 74 | 0d 65 6e 64 20 63 6c 65 |whatText|.end cle|
|00004250| 61 6e 44 61 73 68 65 73 | 0d 0d 6f 6e 20 63 6f 70 |anDashes|..on cop|
|00004260| 79 41 72 74 69 63 6c 65 | 0d 67 6c 6f 62 61 6c 20 |yArticle|.global |
|00004270| 6d 61 70 70 65 72 0d 69 | 66 20 74 6f 6f 6c 73 53 |mapper.i|f toolsS|
|00004280| 74 61 63 6b 28 29 20 74 | 68 65 6e 20 65 78 69 74 |tack() t|hen exit|
|00004290| 20 63 6f 70 79 41 72 74 | 69 63 6c 65 0d 72 65 46 | copyArt|icle.reF|
|000042a0| 6c 6f 77 57 69 74 68 53 | 74 79 6c 65 20 74 72 75 |lowWithS|tyle tru|
|000042b0| 65 0d 70 75 74 20 66 6c | 64 20 22 42 6f 64 79 22 |e.put fl|d "Body"|
|000042c0| 20 69 6e 74 6f 20 72 65 | 70 61 73 74 65 0d 70 75 | into re|paste.pu|
|000042d0| 73 68 20 63 64 0d 6c 6f | 63 6b 20 73 63 72 65 65 |sh cd.lo|ck scree|
|000042e0| 6e 0d 75 6e 6d 61 72 6b | 20 61 6c 6c 20 63 64 73 |n.unmark| all cds|
|000042f0| 0d 70 75 74 20 66 6c 64 | 20 22 41 72 74 69 63 6c |.put fld| "Articl|
|00004300| 65 4e 61 6d 65 22 20 69 | 6e 74 6f 20 74 68 69 73 |eName" i|nto this|
|00004310| 43 68 61 70 74 65 72 0d | 6d 61 72 6b 20 63 64 73 |Chapter.|mark cds|
|00004320| 20 77 68 65 72 65 20 66 | 6c 64 20 22 41 72 74 69 | where f|ld "Arti|
|00004330| 63 6c 65 4e 61 6d 65 22 | 20 69 73 20 74 68 69 73 |cleName"| is this|
|00004340| 43 68 61 70 74 65 72 0d | 67 6f 20 66 69 72 73 74 |Chapter.|go first|
|00004350| 20 6d 61 72 6b 65 64 20 | 63 64 0d 70 75 74 20 74 | marked |cd.put t|
|00004360| 68 65 20 69 64 20 6f 66 | 20 74 68 69 73 20 63 64 |he id of| this cd|
|00004370| 20 69 6e 74 6f 20 66 69 | 72 73 74 43 64 0d 72 65 | into fi|rstCd.re|
|00004380| 70 65 61 74 20 77 69 74 | 68 20 78 20 3d 20 31 20 |peat wit|h x = 1 |
|00004390| 74 6f 20 28 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |to (the |number o|
|000043a0| 66 20 6d 61 72 6b 65 64 | 20 63 64 73 29 0d 69 66 |f marked| cds).if|
|000043b0| 20 74 68 65 20 6c 65 6e | 67 74 68 20 6f 66 20 63 | the len|gth of c|
|000043c0| 68 61 70 43 6f 70 79 20 | 3e 20 33 30 30 30 30 20 |hapCopy |> 30000 |
|000043d0| 74 68 65 6e 0d 61 6e 73 | 77 65 72 20 22 41 72 74 |then.ans|wer "Art|
|000043e0| 69 63 6c 65 20 74 6f 6f | 20 6c 6f 6e 67 20 74 6f |icle too| long to|
|000043f0| 20 63 6f 70 79 2e 22 0d | 70 75 74 20 72 65 70 61 | copy.".|put repa|
|00004400| 73 74 65 20 69 6e 74 6f | 20 66 6c 64 20 22 42 6f |ste into| fld "Bo|
|00004410| 64 79 22 0d 69 66 20 6d | 61 70 70 65 72 20 69 73 |dy".if m|apper is|
|00004420| 20 6e 6f 74 20 65 6d 70 | 74 79 20 74 68 65 6e 0d | not emp|ty then.|
|00004430| 72 65 53 74 79 6c 65 42 | 6f 64 79 0d 65 6e 64 20 |reStyleB|ody.end |
|00004440| 69 66 0d 65 78 69 74 20 | 63 6f 70 79 41 72 74 69 |if.exit |copyArti|
|00004450| 63 6c 65 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 66 |cle.end |if.put f|
|00004460| 6c 64 20 22 42 6f 64 79 | 22 20 61 66 74 65 72 20 |ld "Body|" after |
|00004470| 63 68 61 70 43 6f 70 79 | 0d 67 6f 20 6e 65 78 74 |chapCopy|.go next|
|00004480| 20 6d 61 72 6b 65 64 20 | 63 64 0d 69 66 20 74 68 | marked |cd.if th|
|00004490| 65 20 69 64 20 6f 66 20 | 74 68 69 73 20 63 64 20 |e id of |this cd |
|000044a0| 69 73 20 66 69 72 73 74 | 43 64 20 74 68 65 6e 20 |is first|Cd then |
|000044b0| 65 78 69 74 20 72 65 70 | 65 61 74 0d 69 66 20 74 |exit rep|eat.if t|
|000044c0| 68 65 20 6c 61 73 74 20 | 63 68 61 72 20 6f 66 20 |he last |char of |
|000044d0| 63 68 61 70 43 6f 70 79 | 20 69 73 20 6e 6f 74 20 |chapCopy| is not |
|000044e0| 22 20 22 20 74 68 65 6e | 20 70 75 74 20 22 20 22 |" " then| put " "|
|000044f0| 20 61 66 74 65 72 20 63 | 68 61 70 43 6f 70 79 0d | after c|hapCopy.|
|00004500| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 6f 70 20 63 |end repe|at.pop c|
|00004510| 64 0d 70 75 74 20 63 68 | 61 70 43 6f 70 79 20 69 |d.put ch|apCopy i|
|00004520| 6e 74 6f 20 66 6c 64 20 | 22 42 6f 64 79 22 0d 73 |nto fld |"Body".s|
|00004530| 65 6c 65 63 74 20 74 65 | 78 74 20 6f 66 20 66 6c |elect te|xt of fl|
|00004540| 64 20 22 42 6f 64 79 22 | 0d 64 6f 4d 65 6e 75 20 |d "Body"|.doMenu |
|00004550| 22 43 6f 70 79 20 54 65 | 78 74 22 0d 70 75 74 20 |"Copy Te|xt".put |
|00004560| 72 65 70 61 73 74 65 20 | 69 6e 74 6f 20 66 6c 64 |repaste |into fld|
|00004570| 20 22 42 6f 64 79 22 0d | 69 66 20 6d 61 70 70 65 | "Body".|if mappe|
|00004580| 72 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 74 |r is not| empty t|
|00004590| 68 65 6e 0d 72 65 53 74 | 79 6c 65 42 6f 64 79 0d |hen.reSt|yleBody.|
|000045a0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 63 6f 70 79 41 |end if.e|nd copyA|
|000045b0| 72 74 69 63 6c 65 0d 0d | 6f 6e 20 70 61 73 74 65 |rticle..|on paste|
|000045c0| 41 72 74 69 63 6c 65 0d | 67 6c 6f 62 61 6c 20 6d |Article.|global m|
|000045d0| 61 70 70 65 72 0d 6c 6f | 63 6b 20 73 63 72 65 65 |apper.lo|ck scree|
|000045e0| 6e 0d 64 6f 4d 65 6e 75 | 20 22 50 61 73 74 65 20 |n.doMenu| "Paste |
|000045f0| 54 65 78 74 22 0d 69 66 | 20 6d 61 70 70 65 72 20 |Text".if| mapper |
|00004600| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00004610| 6e 0d 72 65 53 74 79 6c | 65 42 6f 64 79 0d 65 6e |n.reStyl|eBody.en|
|00004620| 64 20 69 66 0d 72 65 66 | 6c 6f 77 57 69 74 68 53 |d if.ref|lowWithS|
|00004630| 74 79 6c 65 0d 65 6e 64 | 20 70 61 73 74 65 41 72 |tyle.end| pasteAr|
|00004640| 74 69 63 6c 65 0d 0d 0d | 2d 2d 20 48 61 6e 64 6c |ticle...|-- Handl|
|00004650| 65 72 73 20 61 72 65 20 | 61 64 61 70 74 65 64 20 |ers are |adapted |
|00004660| 66 72 6f 6d 20 22 54 68 | 65 20 47 75 74 65 6e 62 |from "Th|e Gutenb|
|00004670| 65 72 67 20 52 65 61 64 | 65 72 20 53 74 61 63 6b |erg Read|er Stack|
|00004680| 22 20 47 6c 65 6e 20 4c | 2e 20 42 6c 65 64 73 6f |" Glen L|. Bledso|
|00004690| 65 0d 0d 6f 6e 20 74 79 | 70 65 73 65 74 54 65 78 |e..on ty|pesetTex|
|000046a0| 74 0d 69 66 20 74 6f 6f | 6c 73 53 74 61 63 6b 28 |t.if too|lsStack(|
|000046b0| 29 20 74 68 65 6e 20 65 | 78 69 74 20 74 79 70 65 |) then e|xit type|
|000046c0| 73 65 74 54 65 78 74 0d | 6c 6f 63 6b 20 73 63 72 |setText.|lock scr|
|000046d0| 65 65 6e 0d 6c 6f 63 6b | 20 6d 65 73 73 61 67 65 |een.lock| message|
|000046e0| 73 0d 70 75 74 20 74 68 | 65 20 76 69 73 69 62 6c |s.put th|e visibl|
|000046f0| 65 20 6f 66 20 6d 73 67 | 20 69 6e 74 6f 20 72 65 |e of msg| into re|
|00004700| 4d 73 67 0d 72 65 46 6c | 6f 77 57 69 74 68 53 74 |Msg.reFl|owWithSt|
|00004710| 79 6c 65 20 74 72 75 65 | 0d 70 75 74 20 74 68 65 |yle true|.put the|
|00004720| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 69 73 20 | number |of this |
|00004730| 63 64 20 69 6e 74 6f 20 | 67 6f 42 61 63 6b 0d 75 |cd into |goBack.u|
|00004740| 6e 6d 61 72 6b 20 61 6c | 6c 20 63 64 73 0d 70 75 |nmark al|l cds.pu|
|00004750| 74 20 66 6c 64 20 22 41 | 72 74 69 63 6c 65 4e 61 |t fld "A|rticleNa|
|00004760| 6d 65 22 20 69 6e 74 6f | 20 74 68 69 73 43 68 61 |me" into| thisCha|
|00004770| 70 0d 6d 61 72 6b 20 63 | 61 72 64 73 20 77 68 65 |p.mark c|ards whe|
|00004780| 72 65 20 66 6c 64 20 22 | 41 72 74 69 63 6c 65 4e |re fld "|ArticleN|
|00004790| 61 6d 65 22 20 69 73 20 | 74 68 69 73 43 68 61 70 |ame" is |thisChap|
|000047a0| 0d 67 6f 20 66 69 72 73 | 74 20 6d 61 72 6b 65 64 |.go firs|t marked|
|000047b0| 20 63 64 0d 70 75 74 20 | 22 52 65 70 6c 61 63 69 | cd.put |"Replaci|
|000047c0| 6e 67 20 65 6d 20 64 61 | 73 68 65 73 2e 22 0d 73 |ng em da|shes.".s|
|000047d0| 6d 61 72 74 65 6e 45 6d | 44 61 73 68 20 74 68 69 |martenEm|Dash thi|
|000047e0| 73 43 68 61 70 0d 70 75 | 74 20 22 52 65 70 6c 61 |sChap.pu|t "Repla|
|000047f0| 63 69 6e 67 20 65 6e 20 | 64 61 73 68 65 73 2e 22 |cing en |dashes."|
|00004800| 0d 73 6d 61 72 74 65 6e | 45 6e 44 61 73 68 20 74 |.smarten|EnDash t|
|00004810| 68 69 73 43 68 61 70 0d | 70 75 74 20 22 49 6e 73 |hisChap.|put "Ins|
|00004820| 65 72 74 69 6e 67 20 73 | 6d 61 72 74 20 71 75 6f |erting s|mart quo|
|00004830| 74 65 73 20 61 6e 64 20 | 61 70 6f 73 74 72 6f 70 |tes and |apostrop|
|00004840| 68 65 73 2e 22 0d 73 6d | 61 72 74 65 6e 44 6f 75 |hes.".sm|artenDou|
|00004850| 62 6c 65 51 75 6f 74 65 | 73 20 74 68 69 73 43 68 |bleQuote|s thisCh|
|00004860| 61 70 0d 73 6d 61 72 74 | 65 6e 53 69 6e 67 6c 65 |ap.smart|enSingle|
|00004870| 51 75 6f 74 65 73 20 74 | 68 69 73 43 68 61 70 0d |Quotes t|hisChap.|
|00004880| 73 6d 61 72 74 65 6e 41 | 70 6f 73 74 72 6f 70 68 |smartenA|postroph|
|00004890| 65 20 74 68 69 73 43 68 | 61 70 0d 72 65 53 74 79 |e thisCh|ap.reSty|
|000048a0| 6c 65 42 6f 64 79 0d 72 | 65 46 6c 6f 77 57 69 74 |leBody.r|eFlowWit|
|000048b0| 68 53 74 79 6c 65 0d 69 | 66 20 74 68 65 72 65 20 |hStyle.i|f there |
|000048c0| 69 73 20 61 20 63 64 20 | 67 6f 42 61 63 6b 20 74 |is a cd |goBack t|
|000048d0| 68 65 6e 20 67 6f 20 63 | 64 20 67 6f 42 61 63 6b |hen go c|d goBack|
|000048e0| 0d 65 6c 73 65 20 67 6f | 20 66 69 72 73 74 20 6d |.else go| first m|
|000048f0| 61 72 6b 65 64 20 63 64 | 0d 73 65 74 20 74 68 65 |arked cd|.set the|
|00004900| 20 76 69 73 69 62 6c 65 | 20 6f 66 20 6d 73 67 20 | visible| of msg |
|00004910| 74 6f 20 72 65 4d 73 67 | 0d 65 6e 64 20 74 79 70 |to reMsg|.end typ|
|00004920| 65 73 65 74 54 65 78 74 | 0d 0d 66 75 6e 63 74 69 |esetText|..functi|
|00004930| 6f 6e 20 6d 61 72 6b 49 | 6e 64 65 6e 74 73 20 77 |on markI|ndents w|
|00004940| 68 61 74 54 65 78 74 0d | 73 65 74 20 74 68 65 20 |hatText.|set the |
|00004950| 63 75 72 73 6f 72 20 74 | 6f 20 77 61 74 63 68 0d |cursor t|o watch.|
|00004960| 70 75 74 20 22 4d 61 72 | 6b 69 6e 67 20 69 6e 64 |put "Mar|king ind|
|00004970| 65 6e 74 73 2e 22 0d 72 | 65 70 65 61 74 20 77 69 |ents.".r|epeat wi|
|00004980| 74 68 20 79 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th y = 1| to the |
|00004990| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|000049a0| 6f 66 20 77 68 61 74 54 | 65 78 74 0d 69 66 20 6c |of whatT|ext.if l|
|000049b0| 69 6e 65 20 79 20 6f 66 | 20 77 68 61 74 54 65 78 |ine y of| whatTex|
|000049c0| 74 20 3d 20 65 6d 70 74 | 79 20 6f 72 20 6c 69 6e |t = empt|y or lin|
|000049d0| 65 20 79 20 6f 66 20 77 | 68 61 74 54 65 78 74 20 |e y of w|hatText |
|000049e0| 3d 20 22 5c 22 20 74 68 | 65 6e 0d 70 75 74 20 22 |= "\" th|en.put "|
|000049f0| 7c 5c 22 20 62 65 66 6f | 72 65 20 63 68 61 72 20 ||\" befo|re char |
|00004a00| 31 20 6f 66 20 6c 69 6e | 65 20 28 79 2b 31 29 20 |1 of lin|e (y+1) |
|00004a10| 6f 66 20 77 68 61 74 54 | 65 78 74 0d 65 6e 64 20 |of whatT|ext.end |
|00004a20| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 72 65 |if.end r|epeat.re|
|00004a30| 74 75 72 6e 20 77 68 61 | 74 54 65 78 74 0d 65 6e |turn wha|tText.en|
|00004a40| 64 20 6d 61 72 6b 49 6e | 64 65 6e 74 73 0d 0d 6f |d markIn|dents..o|
|00004a50| 6e 20 72 65 6d 6f 76 65 | 44 61 73 68 65 73 0d 70 |n remove|Dashes.p|
|00004a60| 75 74 20 63 6c 65 61 6e | 44 61 73 68 65 73 28 73 |ut clean|Dashes(s|
|00004a70| 74 72 69 70 54 65 78 74 | 29 20 69 6e 74 6f 20 73 |tripText|) into s|
|00004a80| 74 72 69 70 54 65 78 74 | 0d 65 6e 64 20 72 65 6d |tripText|.end rem|
|00004a90| 6f 76 65 44 61 73 68 65 | 73 0d 0d 6f 6e 20 73 6d |oveDashe|s..on sm|
|00004aa0| 61 72 74 65 6e 41 70 6f | 73 74 72 6f 70 68 65 20 |artenApo|strophe |
|00004ab0| 77 68 61 74 43 68 61 70 | 0d 73 65 74 20 74 68 65 |whatChap|.set the|
|00004ac0| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|00004ad0| 0d 70 75 74 20 22 64 2c | 73 2c 72 2c 6c 2c 74 2c |.put "d,|s,r,l,t,|
|00004ae0| 76 2c 6e 22 20 69 6e 74 | 6f 20 61 6c 70 68 61 62 |v,n" int|o alphab|
|00004af0| 65 74 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 78 |et.repea|t with x|
|00004b00| 20 3d 20 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | = 1 to |the numb|
|00004b10| 65 72 20 6f 66 20 69 74 | 65 6d 73 20 6f 66 20 61 |er of it|ems of a|
|00004b20| 6c 70 68 61 62 65 74 0d | 70 75 74 20 28 22 27 22 |lphabet.|put ("'"|
|00004b30| 20 26 20 69 74 65 6d 20 | 78 20 6f 66 20 61 6c 70 | & item |x of alp|
|00004b40| 68 61 62 65 74 29 20 69 | 6e 74 6f 20 6f 6c 64 0d |habet) i|nto old.|
|00004b50| 70 75 74 20 28 22 d5 22 | 20 26 20 69 74 65 6d 20 |put ("."| & item |
|00004b60| 78 20 6f 66 20 61 6c 70 | 68 61 62 65 74 29 20 69 |x of alp|habet) i|
|00004b70| 6e 74 6f 20 6e 65 77 0d | 72 65 70 65 61 74 0d 73 |nto new.|repeat.s|
|00004b80| 65 6e 64 20 22 66 69 6e | 64 20 73 74 72 69 6e 67 |end "fin|d string|
|00004b90| 22 20 26 20 71 75 6f 74 | 65 20 26 20 6f 6c 64 20 |" & quot|e & old |
|00004ba0| 26 20 71 75 6f 74 65 20 | 26 26 20 22 69 6e 20 66 |& quote |&& "in f|
|00004bb0| 6c 64 20 42 6f 64 79 22 | 20 74 6f 20 48 79 70 65 |ld Body"| to Hype|
|00004bc0| 72 43 61 72 64 0d 69 66 | 20 74 68 65 20 72 65 73 |rCard.if| the res|
|00004bd0| 75 6c 74 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ult is n|ot empty|
|00004be0| 20 6f 72 20 66 6c 64 20 | 22 41 72 74 69 63 6c 65 | or fld |"Article|
|00004bf0| 4e 61 6d 65 22 20 69 73 | 20 6e 6f 74 20 77 68 61 |Name" is| not wha|
|00004c00| 74 43 68 61 70 20 74 68 | 65 6e 20 65 78 69 74 20 |tChap th|en exit |
|00004c10| 72 65 70 65 61 74 0d 64 | 6f 20 22 70 75 74 20 6e |repeat.d|o "put n|
|00004c20| 65 77 20 69 6e 74 6f 20 | 22 20 26 20 74 68 65 20 |ew into |" & the |
|00004c30| 66 6f 75 6e 64 43 68 75 | 6e 6b 0d 65 6e 64 20 72 |foundChu|nk.end r|
|00004c40| 65 70 65 61 74 0d 65 6e | 64 20 72 65 70 65 61 74 |epeat.en|d repeat|
|00004c50| 0d 67 6f 20 66 69 72 73 | 74 20 6d 61 72 6b 65 64 |.go firs|t marked|
|00004c60| 20 63 64 0d 70 75 74 20 | 22 73 27 22 20 69 6e 74 | cd.put |"s'" int|
|00004c70| 6f 20 6f 6c 64 0d 70 75 | 74 20 22 73 d5 22 20 69 |o old.pu|t "s." i|
|00004c80| 6e 74 6f 20 6e 65 77 0d | 72 65 70 65 61 74 0d 73 |nto new.|repeat.s|
|00004c90| 65 6e 64 20 22 66 69 6e | 64 20 73 74 72 69 6e 67 |end "fin|d string|
|00004ca0| 22 20 26 20 71 75 6f 74 | 65 20 26 20 6f 6c 64 20 |" & quot|e & old |
|00004cb0| 26 20 71 75 6f 74 65 20 | 26 26 20 22 69 6e 20 66 |& quote |&& "in f|
|00004cc0| 6c 64 20 42 6f 64 79 22 | 20 74 6f 20 48 79 70 65 |ld Body"| to Hype|
|00004cd0| 72 43 61 72 64 0d 69 66 | 20 74 68 65 20 72 65 73 |rCard.if| the res|
|00004ce0| 75 6c 74 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ult is n|ot empty|
|00004cf0| 20 6f 72 20 66 6c 64 20 | 22 41 72 74 69 63 6c 65 | or fld |"Article|
|00004d00| 4e 61 6d 65 22 20 69 73 | 20 6e 6f 74 20 77 68 61 |Name" is| not wha|
|00004d10| 74 43 68 61 70 20 74 68 | 65 6e 20 65 78 69 74 20 |tChap th|en exit |
|00004d20| 72 65 70 65 61 74 0d 64 | 6f 20 22 70 75 74 20 6e |repeat.d|o "put n|
|00004d30| 65 77 20 69 6e 74 6f 20 | 22 20 26 20 74 68 65 20 |ew into |" & the |
|00004d40| 66 6f 75 6e 64 43 68 75 | 6e 6b 0d 65 6e 64 20 72 |foundChu|nk.end r|
|00004d50| 65 70 65 61 74 0d 67 6f | 20 66 69 72 73 74 20 6d |epeat.go| first m|
|00004d60| 61 72 6b 65 64 20 63 64 | 0d 65 6e 64 20 73 6d 61 |arked cd|.end sma|
|00004d70| 72 74 65 6e 41 70 6f 73 | 74 72 6f 70 68 65 0d 0d |rtenApos|trophe..|
|00004d80| 6f 6e 20 73 6d 61 72 74 | 65 6e 45 6d 44 61 73 68 |on smart|enEmDash|
|00004d90| 20 77 68 61 74 43 68 61 | 70 0d 73 65 74 20 74 68 | whatCha|p.set th|
|00004da0| 65 20 63 75 72 73 6f 72 | 20 74 6f 20 77 61 74 63 |e cursor| to watc|
|00004db0| 68 0d 70 75 74 20 22 2d | 2d 22 20 69 6e 74 6f 20 |h.put "-|-" into |
|00004dc0| 6f 6c 64 0d 70 75 74 20 | 22 d1 22 20 69 6e 74 6f |old.put |"." into|
|00004dd0| 20 6e 65 77 0d 72 65 70 | 65 61 74 0d 73 65 6e 64 | new.rep|eat.send|
|00004de0| 20 22 66 69 6e 64 20 73 | 74 72 69 6e 67 22 20 26 | "find s|tring" &|
|00004df0| 20 71 75 6f 74 65 20 26 | 20 6f 6c 64 20 26 20 71 | quote &| old & q|
|00004e00| 75 6f 74 65 20 26 26 20 | 22 69 6e 20 66 6c 64 20 |uote && |"in fld |
|00004e10| 42 6f 64 79 22 20 74 6f | 20 48 79 70 65 72 43 61 |Body" to| HyperCa|
|00004e20| 72 64 0d 69 66 20 74 68 | 65 20 72 65 73 75 6c 74 |rd.if th|e result|
|00004e30| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 20 6f 72 | is not |empty or|
|00004e40| 20 66 6c 64 20 22 41 72 | 74 69 63 6c 65 4e 61 6d | fld "Ar|ticleNam|
|00004e50| 65 22 20 69 73 20 6e 6f | 74 20 77 68 61 74 43 68 |e" is no|t whatCh|
|00004e60| 61 70 20 74 68 65 6e 20 | 65 78 69 74 20 72 65 70 |ap then |exit rep|
|00004e70| 65 61 74 0d 64 6f 20 22 | 70 75 74 20 6e 65 77 20 |eat.do "|put new |
|00004e80| 69 6e 74 6f 20 22 20 26 | 20 74 68 65 20 66 6f 75 |into " &| the fou|
|00004e90| 6e 64 43 68 75 6e 6b 0d | 65 6e 64 20 72 65 70 65 |ndChunk.|end repe|
|00004ea0| 61 74 0d 67 6f 20 66 69 | 72 73 74 20 6d 61 72 6b |at.go fi|rst mark|
|00004eb0| 65 64 20 63 64 0d 65 6e | 64 20 73 6d 61 72 74 65 |ed cd.en|d smarte|
|00004ec0| 6e 45 6d 44 61 73 68 0d | 0d 6f 6e 20 73 6d 61 72 |nEmDash.|.on smar|
|00004ed0| 74 65 6e 45 6e 44 61 73 | 68 20 77 68 61 74 43 68 |tenEnDas|h whatCh|
|00004ee0| 61 70 0d 73 65 74 20 74 | 68 65 20 63 75 72 73 6f |ap.set t|he curso|
|00004ef0| 72 20 74 6f 20 77 61 74 | 63 68 0d 72 65 70 65 61 |r to wat|ch.repea|
|00004f00| 74 0d 66 69 6e 64 20 22 | 2d 22 20 69 6e 20 66 6c |t.find "|-" in fl|
|00004f10| 64 20 22 42 6f 64 79 22 | 0d 69 66 20 74 68 65 20 |d "Body"|.if the |
|00004f20| 72 65 73 75 6c 74 20 69 | 73 20 6e 6f 74 20 65 6d |result i|s not em|
|00004f30| 70 74 79 20 6f 72 20 66 | 6c 64 20 22 41 72 74 69 |pty or f|ld "Arti|
|00004f40| 63 6c 65 4e 61 6d 65 22 | 20 69 73 20 6e 6f 74 20 |cleName"| is not |
|00004f50| 77 68 61 74 43 68 61 70 | 20 74 68 65 6e 20 65 78 |whatChap| then ex|
|00004f60| 69 74 20 72 65 70 65 61 | 74 0d 70 75 74 20 77 6f |it repea|t.put wo|
|00004f70| 72 64 20 32 20 6f 66 20 | 74 68 65 20 66 6f 75 6e |rd 2 of |the foun|
|00004f80| 64 43 68 75 6e 6b 20 69 | 6e 74 6f 20 6e 65 77 43 |dChunk i|nto newC|
|00004f90| 68 61 72 0d 70 75 74 20 | 22 d0 22 20 69 6e 74 6f |har.put |"." into|
|00004fa0| 20 63 68 61 72 20 6e 65 | 77 43 68 61 72 20 6f 66 | char ne|wChar of|
|00004fb0| 20 66 6c 64 20 22 42 6f | 64 79 22 0d 65 6e 64 20 | fld "Bo|dy".end |
|00004fc0| 72 65 70 65 61 74 0d 67 | 6f 20 66 69 72 73 74 20 |repeat.g|o first |
|00004fd0| 6d 61 72 6b 65 64 20 63 | 64 0d 65 6e 64 20 73 6d |marked c|d.end sm|
|00004fe0| 61 72 74 65 6e 45 6e 44 | 61 73 68 0d 0d 6f 6e 20 |artenEnD|ash..on |
|00004ff0| 73 6d 61 72 74 65 6e 44 | 6f 75 62 6c 65 51 75 6f |smartenD|oubleQuo|
|00005000| 74 65 73 20 77 68 61 74 | 43 68 61 70 0d 72 65 70 |tes what|Chap.rep|
|00005010| 65 61 74 0d 66 69 6e 64 | 20 71 75 6f 74 65 20 69 |eat.find| quote i|
|00005020| 6e 20 66 6c 64 20 22 42 | 6f 64 79 22 0d 69 66 20 |n fld "B|ody".if |
|00005030| 74 68 65 20 72 65 73 75 | 6c 74 20 69 73 20 6e 6f |the resu|lt is no|
|00005040| 74 20 65 6d 70 74 79 20 | 6f 72 20 66 6c 64 20 22 |t empty |or fld "|
|00005050| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 69 73 20 |ArticleN|ame" is |
|00005060| 6e 6f 74 20 77 68 61 74 | 43 68 61 70 20 74 68 65 |not what|Chap the|
|00005070| 6e 20 65 78 69 74 20 72 | 65 70 65 61 74 0d 70 75 |n exit r|epeat.pu|
|00005080| 74 20 77 6f 72 64 20 32 | 20 6f 66 20 74 68 65 20 |t word 2| of the |
|00005090| 66 6f 75 6e 64 43 68 75 | 6e 6b 20 69 6e 74 6f 20 |foundChu|nk into |
|000050a0| 6e 65 77 43 68 61 72 0d | 70 75 74 20 22 d2 22 20 |newChar.|put "." |
|000050b0| 69 6e 74 6f 20 63 68 61 | 72 20 6e 65 77 43 68 61 |into cha|r newCha|
|000050c0| 72 20 6f 66 20 66 6c 64 | 20 22 42 6f 64 79 22 0d |r of fld| "Body".|
|000050d0| 65 6e 64 20 72 65 70 65 | 61 74 0d 67 6f 20 66 69 |end repe|at.go fi|
|000050e0| 72 73 74 20 6d 61 72 6b | 65 64 20 63 64 0d 0d 73 |rst mark|ed cd..s|
|000050f0| 65 74 20 74 68 65 20 63 | 75 72 73 6f 72 20 74 6f |et the c|ursor to|
|00005100| 20 77 61 74 63 68 0d 70 | 75 74 20 22 2c d2 22 20 | watch.p|ut ",." |
|00005110| 69 6e 74 6f 20 6f 6c 64 | 0d 70 75 74 20 22 2c d3 |into old|.put ",.|
|00005120| 22 20 69 6e 74 6f 20 6e | 65 77 0d 72 65 70 65 61 |" into n|ew.repea|
|00005130| 74 0d 73 65 6e 64 20 22 | 66 69 6e 64 20 73 74 72 |t.send "|find str|
|00005140| 69 6e 67 22 20 26 20 71 | 75 6f 74 65 20 26 20 6f |ing" & q|uote & o|
|00005150| 6c 64 20 26 20 71 75 6f | 74 65 20 26 26 20 22 69 |ld & quo|te && "i|
|00005160| 6e 20 66 6c 64 20 42 6f | 64 79 22 20 74 6f 20 48 |n fld Bo|dy" to H|
|00005170| 79 70 65 72 43 61 72 64 | 0d 69 66 20 74 68 65 20 |yperCard|.if the |
|00005180| 72 65 73 75 6c 74 20 69 | 73 20 6e 6f 74 20 65 6d |result i|s not em|
|00005190| 70 74 79 20 6f 72 20 66 | 6c 64 20 22 41 72 74 69 |pty or f|ld "Arti|
|000051a0| 63 6c 65 4e 61 6d 65 22 | 20 69 73 20 6e 6f 74 20 |cleName"| is not |
|000051b0| 77 68 61 74 43 68 61 70 | 20 74 68 65 6e 20 65 78 |whatChap| then ex|
|000051c0| 69 74 20 72 65 70 65 61 | 74 0d 64 6f 20 22 70 75 |it repea|t.do "pu|
|000051d0| 74 20 6e 65 77 20 69 6e | 74 6f 20 22 20 26 20 74 |t new in|to " & t|
|000051e0| 68 65 20 66 6f 75 6e 64 | 43 68 75 6e 6b 0d 65 6e |he found|Chunk.en|
|000051f0| 64 20 72 65 70 65 61 74 | 0d 67 6f 20 66 69 72 73 |d repeat|.go firs|
|00005200| 74 20 6d 61 72 6b 65 64 | 20 63 64 0d 70 75 74 20 |t marked| cd.put |
|00005210| 22 61 2c 62 2c 63 2c 64 | 2c 65 2c 66 2c 67 2c 68 |"a,b,c,d|,e,f,g,h|
|00005220| 2c 69 2c 6a 2c 6b 2c 6c | 2c 6d 2c 6e 2c 6f 2c 70 |,i,j,k,l|,m,n,o,p|
|00005230| 2c 71 2c 72 2c 73 2c 74 | 2c 75 2c 76 2c 77 2c 78 |,q,r,s,t|,u,v,w,x|
|00005240| 2c 79 2c 7a 2c 2e 2c 3f | 2c 21 2c 3b 22 20 69 6e |,y,z,.,?|,!,;" in|
|00005250| 74 6f 20 61 6c 70 68 61 | 62 65 74 0d 72 65 70 65 |to alpha|bet.repe|
|00005260| 61 74 20 77 69 74 68 20 | 78 20 3d 20 31 20 74 6f |at with |x = 1 to|
|00005270| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 69 | the num|ber of i|
|00005280| 74 65 6d 73 20 6f 66 20 | 61 6c 70 68 61 62 65 74 |tems of |alphabet|
|00005290| 0d 70 75 74 20 28 69 74 | 65 6d 20 78 20 6f 66 20 |.put (it|em x of |
|000052a0| 61 6c 70 68 61 62 65 74 | 20 26 20 22 d2 22 29 20 |alphabet| & ".") |
|000052b0| 69 6e 74 6f 20 6f 6c 64 | 0d 70 75 74 20 28 69 74 |into old|.put (it|
|000052c0| 65 6d 20 78 20 6f 66 20 | 61 6c 70 68 61 62 65 74 |em x of |alphabet|
|000052d0| 20 26 20 22 d3 22 29 20 | 69 6e 74 6f 20 6e 65 77 | & ".") |into new|
|000052e0| 0d 72 65 70 65 61 74 0d | 73 65 6e 64 20 22 66 69 |.repeat.|send "fi|
|000052f0| 6e 64 20 73 74 72 69 6e | 67 22 20 26 20 71 75 6f |nd strin|g" & quo|
|00005300| 74 65 20 26 20 6f 6c 64 | 20 26 20 71 75 6f 74 65 |te & old| & quote|
|00005310| 20 26 26 20 22 69 6e 20 | 66 6c 64 20 42 6f 64 79 | && "in |fld Body|
|00005320| 22 20 74 6f 20 48 79 70 | 65 72 43 61 72 64 0d 69 |" to Hyp|erCard.i|
|00005330| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 73 20 |f the re|sult is |
|00005340| 6e 6f 74 20 65 6d 70 74 | 79 20 6f 72 20 66 6c 64 |not empt|y or fld|
|00005350| 20 22 41 72 74 69 63 6c | 65 4e 61 6d 65 22 20 69 | "Articl|eName" i|
|00005360| 73 20 6e 6f 74 20 77 68 | 61 74 43 68 61 70 20 74 |s not wh|atChap t|
|00005370| 68 65 6e 20 65 78 69 74 | 20 72 65 70 65 61 74 0d |hen exit| repeat.|
|00005380| 64 6f 20 22 70 75 74 20 | 6e 65 77 20 69 6e 74 6f |do "put |new into|
|00005390| 20 22 20 26 20 74 68 65 | 20 66 6f 75 6e 64 43 68 | " & the| foundCh|
|000053a0| 75 6e 6b 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 |unk.end |repeat.e|
|000053b0| 6e 64 20 72 65 70 65 61 | 74 0d 67 6f 20 66 69 72 |nd repea|t.go fir|
|000053c0| 73 74 20 6d 61 72 6b 65 | 64 20 63 64 0d 65 6e 64 |st marke|d cd.end|
|000053d0| 20 73 6d 61 72 74 65 6e | 44 6f 75 62 6c 65 51 75 | smarten|DoubleQu|
|000053e0| 6f 74 65 73 0d 0d 6f 6e | 20 73 6d 61 72 74 65 6e |otes..on| smarten|
|000053f0| 53 69 6e 67 6c 65 51 75 | 6f 74 65 73 20 77 68 61 |SingleQu|otes wha|
|00005400| 74 43 68 61 70 0d 72 65 | 70 65 61 74 0d 66 69 6e |tChap.re|peat.fin|
|00005410| 64 20 22 27 22 20 69 6e | 20 66 6c 64 20 22 42 6f |d "'" in| fld "Bo|
|00005420| 64 79 22 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |dy".if t|he resul|
|00005430| 74 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 6f |t is not| empty o|
|00005440| 72 20 66 6c 64 20 22 41 | 72 74 69 63 6c 65 4e 61 |r fld "A|rticleNa|
|00005450| 6d 65 22 20 69 73 20 6e | 6f 74 20 77 68 61 74 43 |me" is n|ot whatC|
|00005460| 68 61 70 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |hap then| exit re|
|00005470| 70 65 61 74 0d 70 75 74 | 20 77 6f 72 64 20 32 20 |peat.put| word 2 |
|00005480| 6f 66 20 74 68 65 20 66 | 6f 75 6e 64 43 68 75 6e |of the f|oundChun|
|00005490| 6b 20 69 6e 74 6f 20 6e | 65 77 43 68 61 72 0d 70 |k into n|ewChar.p|
|000054a0| 75 74 20 22 d5 22 20 69 | 6e 74 6f 20 63 68 61 72 |ut "." i|nto char|
|000054b0| 20 6e 65 77 43 68 61 72 | 20 6f 66 20 66 6c 64 20 | newChar| of fld |
|000054c0| 22 42 6f 64 79 22 0d 65 | 6e 64 20 72 65 70 65 61 |"Body".e|nd repea|
|000054d0| 74 0d 67 6f 20 66 69 72 | 73 74 20 6d 61 72 6b 65 |t.go fir|st marke|
|000054e0| 64 20 63 64 0d 70 75 74 | 20 22 61 2c 62 2c 63 2c |d cd.put| "a,b,c,|
|000054f0| 64 2c 65 2c 66 2c 67 2c | 68 2c 69 2c 6a 2c 6b 2c |d,e,f,g,|h,i,j,k,|
|00005500| 6c 2c 6d 2c 6e 2c 6f 2c | 70 2c 71 2c 72 2c 73 2c |l,m,n,o,|p,q,r,s,|
|00005510| 74 2c 75 2c 76 2c 77 2c | 78 2c 79 2c 7a 22 20 69 |t,u,v,w,|x,y,z" i|
|00005520| 6e 74 6f 20 61 6c 70 68 | 61 62 65 74 0d 72 65 70 |nto alph|abet.rep|
|00005530| 65 61 74 20 77 69 74 68 | 20 78 20 3d 20 31 20 74 |eat with| x = 1 t|
|00005540| 6f 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |o the nu|mber of |
|00005550| 69 74 65 6d 73 20 6f 66 | 20 61 6c 70 68 61 62 65 |items of| alphabe|
|00005560| 74 0d 70 75 74 20 28 22 | d5 22 20 26 20 69 74 65 |t.put ("|." & ite|
|00005570| 6d 20 78 20 6f 66 20 61 | 6c 70 68 61 62 65 74 29 |m x of a|lphabet)|
|00005580| 20 69 6e 74 6f 20 6f 6c | 64 0d 70 75 74 20 28 22 | into ol|d.put ("|
|00005590| d4 22 20 26 20 69 74 65 | 6d 20 78 20 6f 66 20 61 |." & ite|m x of a|
|000055a0| 6c 70 68 61 62 65 74 29 | 20 69 6e 74 6f 20 6e 65 |lphabet)| into ne|
|000055b0| 77 0d 72 65 70 65 61 74 | 0d 73 65 6e 64 20 22 66 |w.repeat|.send "f|
|000055c0| 69 6e 64 20 73 74 72 69 | 6e 67 22 20 26 20 71 75 |ind stri|ng" & qu|
|000055d0| 6f 74 65 20 26 20 6f 6c | 64 20 26 20 71 75 6f 74 |ote & ol|d & quot|
|000055e0| 65 20 26 26 20 22 69 6e | 20 66 6c 64 20 42 6f 64 |e && "in| fld Bod|
|000055f0| 79 22 20 74 6f 20 48 79 | 70 65 72 43 61 72 64 0d |y" to Hy|perCard.|
|00005600| 69 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 73 |if the r|esult is|
|00005610| 20 6e 6f 74 20 65 6d 70 | 74 79 20 6f 72 20 66 6c | not emp|ty or fl|
|00005620| 64 20 22 41 72 74 69 63 | 6c 65 4e 61 6d 65 22 20 |d "Artic|leName" |
|00005630| 69 73 20 6e 6f 74 20 77 | 68 61 74 43 68 61 70 20 |is not w|hatChap |
|00005640| 74 68 65 6e 20 65 78 69 | 74 20 72 65 70 65 61 74 |then exi|t repeat|
|00005650| 0d 64 6f 20 22 70 75 74 | 20 6e 65 77 20 69 6e 74 |.do "put| new int|
|00005660| 6f 20 22 20 26 20 74 68 | 65 20 66 6f 75 6e 64 43 |o " & th|e foundC|
|00005670| 68 75 6e 6b 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |hunk.end| repeat.|
|00005680| 65 6e 64 20 72 65 70 65 | 61 74 0d 67 6f 20 66 69 |end repe|at.go fi|
|00005690| 72 73 74 20 6d 61 72 6b | 65 64 20 63 64 0d 0d 72 |rst mark|ed cd..r|
|000056a0| 65 70 65 61 74 0d 66 69 | 6e 64 20 22 60 22 20 69 |epeat.fi|nd "`" i|
|000056b0| 6e 20 66 6c 64 20 22 42 | 6f 64 79 22 0d 69 66 20 |n fld "B|ody".if |
|000056c0| 74 68 65 20 72 65 73 75 | 6c 74 20 69 73 20 6e 6f |the resu|lt is no|
|000056d0| 74 20 65 6d 70 74 79 20 | 6f 72 20 66 6c 64 20 22 |t empty |or fld "|
|000056e0| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 69 73 20 |ArticleN|ame" is |
|000056f0| 6e 6f 74 20 77 68 61 74 | 43 68 61 70 20 74 68 65 |not what|Chap the|
|00005700| 6e 20 65 78 69 74 20 72 | 65 70 65 61 74 0d 70 75 |n exit r|epeat.pu|
|00005710| 74 20 77 6f 72 64 20 32 | 20 6f 66 20 74 68 65 20 |t word 2| of the |
|00005720| 66 6f 75 6e 64 43 68 75 | 6e 6b 20 69 6e 74 6f 20 |foundChu|nk into |
|00005730| 6e 65 77 43 68 61 72 0d | 70 75 74 20 22 d4 22 20 |newChar.|put "." |
|00005740| 69 6e 74 6f 20 63 68 61 | 72 20 6e 65 77 43 68 61 |into cha|r newCha|
|00005750| 72 20 6f 66 20 66 6c 64 | 20 22 42 6f 64 79 22 0d |r of fld| "Body".|
|00005760| 65 6e 64 20 72 65 70 65 | 61 74 0d 67 6f 20 66 69 |end repe|at.go fi|
|00005770| 72 73 74 20 6d 61 72 6b | 65 64 20 63 64 0d 65 6e |rst mark|ed cd.en|
|00005780| 64 20 73 6d 61 72 74 65 | 6e 53 69 6e 67 6c 65 51 |d smarte|nSingleQ|
|00005790| 75 6f 74 65 73 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |uotes..f|unction |
|000057a0| 74 6f 6f 6c 73 53 74 61 | 63 6b 0d 72 65 74 75 72 |toolsSta|ck.retur|
|000057b0| 6e 20 28 22 4d 61 67 4d | 61 6b 65 72 20 54 6f 6f |n ("MagM|aker Too|
|000057c0| 6c 73 22 20 69 73 20 69 | 6e 20 74 68 65 20 6e 61 |ls" is i|n the na|
|000057d0| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|000057e0| 29 0d 65 6e 64 20 74 6f | 6f 6c 73 53 74 61 63 6b |).end to|olsStack|
|000057f0| 0d 0d 6f 6e 20 72 65 66 | 6c 6f 77 57 69 74 68 53 |..on ref|lowWithS|
|00005800| 74 79 6c 65 20 68 6f 6c | 64 55 70 64 61 74 65 0d |tyle hol|dUpdate.|
|00005810| 67 6c 6f 62 61 6c 20 6d | 61 70 70 65 72 0d 70 75 |global m|apper.pu|
|00005820| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 6d 61 70 |t empty |into map|
|00005830| 70 65 72 0d 70 75 74 20 | 74 68 65 20 6c 6f 63 6b |per.put |the lock|
|00005840| 54 65 78 74 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |Text of |fld "Bod|
|00005850| 79 22 20 69 6e 74 6f 20 | 72 65 4c 6f 63 6b 0d 73 |y" into |reLock.s|
|00005860| 65 74 20 74 68 65 20 6c | 6f 63 6b 54 65 78 74 20 |et the l|ockText |
|00005870| 6f 66 20 66 6c 64 20 22 | 42 6f 64 79 22 20 74 6f |of fld "|Body" to|
|00005880| 20 74 72 75 65 0d 70 75 | 74 20 74 68 65 20 76 69 | true.pu|t the vi|
|00005890| 73 69 62 6c 65 20 6f 66 | 20 6d 73 67 20 69 6e 74 |sible of| msg int|
|000058a0| 6f 20 72 65 4d 73 67 0d | 70 75 74 20 66 6c 64 20 |o reMsg.|put fld |
|000058b0| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 69 6e |"Article|Name" in|
|000058c0| 74 6f 20 74 68 69 73 43 | 68 61 70 74 65 72 0d 70 |to thisC|hapter.p|
|000058d0| 75 73 68 20 63 64 0d 6c | 6f 63 6b 20 73 63 72 65 |ush cd.l|ock scre|
|000058e0| 65 6e 0d 6c 6f 63 6b 20 | 6d 65 73 73 61 67 65 73 |en.lock |messages|
|000058f0| 0d 75 6e 6d 61 72 6b 20 | 61 6c 6c 20 63 64 73 0d |.unmark |all cds.|
|00005900| 6d 61 72 6b 20 63 64 73 | 20 77 68 65 72 65 20 66 |mark cds| where f|
|00005910| 6c 64 20 22 41 72 74 69 | 63 6c 65 4e 61 6d 65 22 |ld "Arti|cleName"|
|00005920| 20 69 73 20 74 68 69 73 | 43 68 61 70 74 65 72 0d | is this|Chapter.|
|00005930| 67 6f 20 66 69 72 73 74 | 20 6d 61 72 6b 65 64 20 |go first| marked |
|00005940| 63 64 0d 70 75 74 20 74 | 68 65 20 69 64 20 6f 66 |cd.put t|he id of|
|00005950| 20 74 68 69 73 20 63 64 | 20 69 6e 74 6f 20 66 69 | this cd| into fi|
|00005960| 72 73 74 43 64 0d 72 65 | 70 65 61 74 20 77 69 74 |rstCd.re|peat wit|
|00005970| 68 20 78 20 3d 20 31 20 | 74 6f 20 28 74 68 65 20 |h x = 1 |to (the |
|00005980| 6e 75 6d 62 65 72 20 6f | 66 20 6d 61 72 6b 65 64 |number o|f marked|
|00005990| 20 63 64 73 29 0d 69 66 | 20 74 68 65 20 68 69 67 | cds).if| the hig|
|000059a0| 68 6c 69 67 68 74 20 6f | 66 20 62 67 20 62 74 6e |hlight o|f bg btn|
|000059b0| 20 22 4c 6f 63 6b 50 61 | 67 65 22 20 74 68 65 6e | "LockPa|ge" then|
|000059c0| 0d 67 6f 20 6e 65 78 74 | 20 6d 61 72 6b 65 64 20 |.go next| marked |
|000059d0| 63 64 0d 6e 65 78 74 20 | 72 65 70 65 61 74 0d 65 |cd.next |repeat.e|
|000059e0| 6e 64 20 69 66 0d 72 65 | 70 65 61 74 20 77 69 74 |nd if.re|peat wit|
|000059f0| 68 20 77 20 3d 20 31 20 | 74 6f 20 28 74 68 65 20 |h w = 1 |to (the |
|00005a00| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00005a10| 6f 66 20 66 6c 64 20 22 | 42 6f 64 79 22 29 0d 69 |of fld "|Body").i|
|00005a20| 66 20 74 68 65 20 74 65 | 78 74 53 74 79 6c 65 20 |f the te|xtStyle |
|00005a30| 6f 66 20 6c 69 6e 65 20 | 77 20 6f 66 20 66 6c 64 |of line |w of fld|
|00005a40| 20 22 42 6f 64 79 22 20 | 69 73 20 6e 6f 74 20 70 | "Body" |is not p|
|00005a50| 6c 61 69 6e 20 74 68 65 | 6e 0d 70 75 74 20 31 20 |lain the|n.put 1 |
|00005a60| 69 6e 74 6f 20 79 0d 72 | 65 70 65 61 74 0d 69 66 |into y.r|epeat.if|
|00005a70| 20 79 20 3e 3d 20 74 68 | 65 20 6e 75 6d 62 65 72 | y >= th|e number|
|00005a80| 20 6f 66 20 63 68 61 72 | 73 20 6f 66 20 6c 69 6e | of char|s of lin|
|00005a90| 65 20 77 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |e w of f|ld "Body|
|00005aa0| 22 20 74 68 65 6e 20 65 | 78 69 74 20 72 65 70 65 |" then e|xit repe|
|00005ab0| 61 74 0d 70 75 74 20 22 | 4d 61 70 70 69 6e 67 20 |at.put "|Mapping |
|00005ac0| 73 74 79 6c 65 20 6f 66 | 20 6c 69 6e 65 22 20 26 |style of| line" &|
|00005ad0| 26 20 77 20 26 20 22 20 | 6f 66 20 70 61 67 65 20 |& w & " |of page |
|00005ae0| 22 20 26 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |" & the |number o|
|00005af0| 66 20 74 68 69 73 20 63 | 64 20 26 20 22 2e 22 0d |f this c|d & ".".|
|00005b00| 69 66 20 74 68 65 20 74 | 65 78 74 53 74 79 6c 65 |if the t|extStyle|
|00005b10| 20 6f 66 20 63 68 61 72 | 20 79 20 6f 66 20 6c 69 | of char| y of li|
|00005b20| 6e 65 20 77 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |ne w of |fld "Bod|
|00005b30| 79 22 20 69 73 20 6e 6f | 74 20 70 6c 61 69 6e 20 |y" is no|t plain |
|00005b40| 74 68 65 6e 0d 70 75 74 | 20 79 20 69 6e 74 6f 20 |then.put| y into |
|00005b50| 66 69 72 73 74 43 68 61 | 72 0d 70 75 74 20 74 65 |firstCha|r.put te|
|00005b60| 78 74 53 74 79 6c 65 20 | 6f 66 20 63 68 61 72 20 |xtStyle |of char |
|00005b70| 79 20 6f 66 20 6c 69 6e | 65 20 77 20 6f 66 20 66 |y of lin|e w of f|
|00005b80| 6c 64 20 22 42 6f 64 79 | 22 20 69 6e 74 6f 20 63 |ld "Body|" into c|
|00005b90| 75 72 53 74 79 6c 65 0d | 72 65 70 65 61 74 20 75 |urStyle.|repeat u|
|00005ba0| 6e 74 69 6c 20 63 75 72 | 53 74 79 6c 65 20 69 73 |ntil cur|Style is|
|00005bb0| 20 6e 6f 74 20 74 68 65 | 20 74 65 78 74 53 74 79 | not the| textSty|
|00005bc0| 6c 65 20 6f 66 20 63 68 | 61 72 20 79 20 6f 66 20 |le of ch|ar y of |
|00005bd0| 6c 69 6e 65 20 77 20 6f | 66 20 66 6c 64 20 22 42 |line w o|f fld "B|
|00005be0| 6f 64 79 22 20 6f 72 20 | 63 68 61 72 20 79 20 6f |ody" or |char y o|
|00005bf0| 66 20 6c 69 6e 65 20 77 | 20 6f 66 20 66 6c 64 20 |f line w| of fld |
|00005c00| 22 42 6f 64 79 22 20 69 | 73 20 72 65 74 75 72 6e |"Body" i|s return|
|00005c10| 20 6f 72 20 c2 0d 79 20 | 3e 20 74 68 65 20 6e 75 | or ..y |> the nu|
|00005c20| 6d 62 65 72 20 6f 66 20 | 63 68 61 72 73 20 6f 66 |mber of |chars of|
|00005c30| 20 6c 69 6e 65 20 77 20 | 6f 66 20 66 6c 64 20 22 | line w |of fld "|
|00005c40| 42 6f 64 79 22 0d 61 64 | 64 20 31 20 74 6f 20 79 |Body".ad|d 1 to y|
|00005c50| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 70 75 74 20 |.end rep|eat.put |
|00005c60| 63 68 61 72 20 66 69 72 | 73 74 43 68 61 72 20 74 |char fir|stChar t|
|00005c70| 6f 20 28 79 20 2d 20 31 | 29 20 6f 66 20 6c 69 6e |o (y - 1|) of lin|
|00005c80| 65 20 77 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |e w of f|ld "Body|
|00005c90| 22 20 69 6e 74 6f 20 73 | 74 79 6c 65 43 68 75 6e |" into s|tyleChun|
|00005ca0| 6b 0d 70 75 74 20 63 68 | 61 72 20 28 66 69 72 73 |k.put ch|ar (firs|
|00005cb0| 74 43 68 61 72 20 2d 20 | 31 30 29 20 74 6f 20 28 |tChar - |10) to (|
|00005cc0| 66 69 72 73 74 43 68 61 | 72 20 2d 20 31 29 20 6f |firstCha|r - 1) o|
|00005cd0| 66 20 6c 69 6e 65 20 77 | 20 6f 66 20 66 6c 64 20 |f line w| of fld |
|00005ce0| 22 42 6f 64 79 22 20 69 | 6e 74 6f 20 63 68 65 63 |"Body" i|nto chec|
|00005cf0| 6b 42 65 66 6f 72 65 0d | 70 75 74 20 63 68 61 72 |kBefore.|put char|
|00005d00| 20 79 20 74 6f 20 28 79 | 20 2b 20 39 29 20 6f 66 | y to (y| + 9) of|
|00005d10| 20 6c 69 6e 65 20 77 20 | 6f 66 20 66 6c 64 20 22 | line w |of fld "|
|00005d20| 42 6f 64 79 22 20 69 6e | 74 6f 20 63 68 65 63 6b |Body" in|to check|
|00005d30| 41 66 74 65 72 0d 69 66 | 20 72 65 74 75 72 6e 20 |After.if| return |
|00005d40| 69 73 20 69 6e 20 73 74 | 79 6c 65 43 68 75 6e 6b |is in st|yleChunk|
|00005d50| 20 74 68 65 6e 0d 72 65 | 70 65 61 74 20 77 68 69 | then.re|peat whi|
|00005d60| 6c 65 20 6f 66 66 73 65 | 74 28 72 65 74 75 72 6e |le offse|t(return|
|00005d70| 2c 73 74 79 6c 65 43 68 | 75 6e 6b 29 20 3c 3e 20 |,styleCh|unk) <> |
|00005d80| 30 0d 70 75 74 20 63 68 | 61 72 20 31 20 74 6f 20 |0.put ch|ar 1 to |
|00005d90| 6f 66 66 73 65 74 28 72 | 65 74 75 72 6e 2c 73 74 |offset(r|eturn,st|
|00005da0| 79 6c 65 43 68 75 6e 6b | 29 20 6f 66 20 73 74 79 |yleChunk|) of sty|
|00005db0| 6c 65 43 68 75 6e 6b 20 | 69 6e 74 6f 20 66 69 72 |leChunk |into fir|
|00005dc0| 73 74 43 68 75 6e 6b 0d | 70 75 74 20 71 75 6f 74 |stChunk.|put quot|
|00005dd0| 65 20 26 20 66 69 72 73 | 74 43 68 75 6e 6b 20 26 |e & firs|tChunk &|
|00005de0| 20 71 75 6f 74 65 20 26 | 20 72 65 74 75 72 6e 20 | quote &| return |
|00005df0| 26 20 63 75 72 53 74 79 | 6c 65 20 26 20 72 65 74 |& curSty|le & ret|
|00005e00| 75 72 6e 20 61 66 74 65 | 72 20 6d 61 70 70 65 72 |urn afte|r mapper|
|00005e10| 0d 64 65 6c 65 74 65 20 | 63 68 61 72 20 31 20 74 |.delete |char 1 t|
|00005e20| 6f 20 6f 66 66 73 65 74 | 28 72 65 74 75 72 6e 2c |o offset|(return,|
|00005e30| 73 74 79 6c 65 43 68 75 | 6e 6b 29 20 6f 66 20 73 |styleChu|nk) of s|
|00005e40| 74 79 6c 65 43 68 75 6e | 6b 0d 65 6e 64 20 72 65 |tyleChun|k.end re|
|00005e50| 70 65 61 74 0d 65 6c 73 | 65 0d 70 75 74 20 73 74 |peat.els|e.put st|
|00005e60| 79 6c 65 43 68 75 6e 6b | 20 26 20 72 65 74 75 72 |yleChunk| & retur|
|00005e70| 6e 20 26 20 63 75 72 53 | 74 79 6c 65 20 26 20 72 |n & curS|tyle & r|
|00005e80| 65 74 75 72 6e 20 26 20 | 63 68 65 63 6b 42 65 66 |eturn & |checkBef|
|00005e90| 6f 72 65 20 26 20 72 65 | 74 75 72 6e 20 26 c2 0d |ore & re|turn &..|
|00005ea0| 63 68 65 63 6b 41 66 74 | 65 72 20 26 20 72 65 74 |checkAft|er & ret|
|00005eb0| 75 72 6e 20 61 66 74 65 | 72 20 6d 61 70 70 65 72 |urn afte|r mapper|
|00005ec0| 0d 65 6e 64 20 69 66 0d | 0d 65 6e 64 20 69 66 0d |.end if.|.end if.|
|00005ed0| 61 64 64 20 31 20 74 6f | 20 79 0d 65 6e 64 20 72 |add 1 to| y.end r|
|00005ee0| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 65 6e 64 |epeat.en|d if.end|
|00005ef0| 20 72 65 70 65 61 74 0d | 67 6f 20 6e 65 78 74 20 | repeat.|go next |
|00005f00| 6d 61 72 6b 65 64 20 63 | 64 0d 69 66 20 74 68 65 |marked c|d.if the|
|00005f10| 20 69 64 20 6f 66 20 74 | 68 69 73 20 63 64 20 69 | id of t|his cd i|
|00005f20| 73 20 66 69 72 73 74 43 | 64 20 74 68 65 6e 20 65 |s firstC|d then e|
|00005f30| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |xit repe|at.end r|
|00005f40| 65 70 65 61 74 0d 69 66 | 20 68 6f 6c 64 55 70 64 |epeat.if| holdUpd|
|00005f50| 61 74 65 20 69 73 20 6e | 6f 74 20 74 72 75 65 20 |ate is n|ot true |
|00005f60| 74 68 65 6e 20 2d 2d 20 | 71 75 65 73 74 69 6f 6e |then -- |question|
|00005f70| 3f 0d 75 70 64 61 74 65 | 54 65 78 74 0d 69 66 20 |?.update|Text.if |
|00005f80| 6d 61 70 70 65 72 20 69 | 73 20 6e 6f 74 20 65 6d |mapper i|s not em|
|00005f90| 70 74 79 20 74 68 65 6e | 0d 70 75 74 20 22 52 65 |pty then|.put "Re|
|00005fa0| 2d 6d 61 70 70 69 6e 67 | 20 73 74 79 6c 65 73 2e |-mapping| styles.|
|00005fb0| 22 0d 72 65 53 74 79 6c | 65 42 6f 64 79 0d 65 6e |".reStyl|eBody.en|
|00005fc0| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 70 6f 70 20 |d if.end| if.pop |
|00005fd0| 63 64 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |cd.if th|ere is a|
|00005fe0| 20 66 6c 64 20 22 42 6f | 64 79 22 20 74 68 65 6e | fld "Bo|dy" then|
|00005ff0| 20 73 65 74 20 74 68 65 | 20 6c 6f 63 6b 54 65 78 | set the| lockTex|
|00006000| 74 20 6f 66 20 66 6c 64 | 20 22 42 6f 64 79 22 20 |t of fld| "Body" |
|00006010| 74 6f 20 72 65 4c 6f 63 | 6b 0d 69 66 20 74 68 65 |to reLoc|k.if the|
|00006020| 20 76 69 73 69 62 6c 65 | 20 6f 66 20 6d 73 67 20 | visible| of msg |
|00006030| 74 68 65 6e 20 70 75 74 | 20 65 6d 70 74 79 0d 73 |then put| empty.s|
|00006040| 65 74 20 74 68 65 20 76 | 69 73 69 62 6c 65 20 6f |et the v|isible o|
|00006050| 66 20 6d 73 67 20 74 6f | 20 72 65 4d 73 67 0d 65 |f msg to| reMsg.e|
|00006060| 6e 64 20 72 65 66 6c 6f | 77 57 69 74 68 53 74 79 |nd reflo|wWithSty|
|00006070| 6c 65 0d 0d 6f 6e 20 72 | 65 53 74 79 6c 65 42 6f |le..on r|eStyleBo|
|00006080| 64 79 0d 67 6c 6f 62 61 | 6c 20 6d 61 70 70 65 72 |dy.globa|l mapper|
|00006090| 0d 70 75 74 20 31 20 69 | 6e 74 6f 20 78 0d 72 65 |.put 1 i|nto x.re|
|000060a0| 70 65 61 74 20 28 74 68 | 65 20 6e 75 6d 62 65 72 |peat (th|e number|
|000060b0| 20 6f 66 20 6c 69 6e 65 | 73 20 6f 66 20 6d 61 70 | of line|s of map|
|000060c0| 70 65 72 20 2f 20 34 29 | 0d 69 66 20 74 68 65 20 |per / 4)|.if the |
|000060d0| 6e 75 6d 62 65 72 20 6f | 66 20 63 68 61 72 73 20 |number o|f chars |
|000060e0| 6f 66 20 6c 69 6e 65 20 | 78 20 2b 20 32 20 6f 66 |of line |x + 2 of|
|000060f0| 20 6d 61 70 70 65 72 20 | 69 73 20 31 30 20 61 6e | mapper |is 10 an|
|00006100| 64 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |d the nu|mber of |
|00006110| 63 68 61 72 73 20 6f 66 | 20 6c 69 6e 65 20 78 20 |chars of| line x |
|00006120| 2b 20 33 20 6f 66 20 6d | 61 70 70 65 72 20 69 73 |+ 3 of m|apper is|
|00006130| 20 31 30 20 20 74 68 65 | 6e 0d 70 75 74 20 22 66 | 10 the|n.put "f|
|00006140| 69 6e 64 20 73 74 72 69 | 6e 67 22 20 26 26 20 71 |ind stri|ng" && q|
|00006150| 75 6f 74 65 20 26 20 6c | 69 6e 65 20 28 78 20 2b |uote & l|ine (x +|
|00006160| 20 32 29 20 6f 66 20 6d | 61 70 70 65 72 20 26 20 | 2) of m|apper & |
|00006170| 6c 69 6e 65 20 78 20 6f | 66 20 6d 61 70 70 65 72 |line x o|f mapper|
|00006180| 20 26 20 6c 69 6e 65 20 | 28 78 20 2b 20 33 29 20 | & line |(x + 3) |
|00006190| 6f 66 20 6d 61 70 70 65 | 72 20 26 20 71 75 6f 74 |of mappe|r & quot|
|000061a0| 65 20 26 26 20 22 69 6e | 20 66 6c 64 20 42 6f 64 |e && "in| fld Bod|
|000061b0| 79 22 20 69 6e 74 6f 20 | 64 6f 49 74 0d 64 6f 20 |y" into |doIt.do |
|000061c0| 64 6f 49 74 0d 69 66 20 | 74 68 65 20 72 65 73 75 |doIt.if |the resu|
|000061d0| 6c 74 20 69 73 20 65 6d | 70 74 79 20 61 6e 64 20 |lt is em|pty and |
|000061e0| 74 68 65 20 66 6f 75 6e | 64 43 68 75 6e 6b 20 69 |the foun|dChunk i|
|000061f0| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|00006200| 0d 70 75 74 20 74 68 65 | 20 66 6f 75 6e 64 43 68 |.put the| foundCh|
|00006210| 75 6e 6b 20 69 6e 74 6f | 20 66 75 6c 6c 43 68 75 |unk into| fullChu|
|00006220| 6e 6b 0d 61 64 64 20 31 | 30 20 74 6f 20 77 6f 72 |nk.add 1|0 to wor|
|00006230| 64 20 32 20 6f 66 20 66 | 75 6c 6c 43 68 75 6e 6b |d 2 of f|ullChunk|
|00006240| 0d 73 75 62 74 72 61 63 | 74 20 31 30 20 66 72 6f |.subtrac|t 10 fro|
|00006250| 6d 20 77 6f 72 64 20 34 | 20 6f 66 20 66 75 6c 6c |m word 4| of full|
|00006260| 43 68 75 6e 6b 0d 73 65 | 74 20 74 68 65 20 74 65 |Chunk.se|t the te|
|00006270| 78 74 53 74 79 6c 65 20 | 6f 66 20 66 75 6c 6c 43 |xtStyle |of fullC|
|00006280| 68 75 6e 6b 20 74 6f 20 | 6c 69 6e 65 20 28 78 20 |hunk to |line (x |
|00006290| 2b 20 31 29 20 6f 66 20 | 6d 61 70 70 65 72 0d 65 |+ 1) of |mapper.e|
|000062a0| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 69 66 20 |nd if.en|d if.if |
|000062b0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 68 |the numb|er of ch|
|000062c0| 61 72 73 20 6f 66 20 6c | 69 6e 65 20 78 20 2b 20 |ars of l|ine x + |
|000062d0| 32 20 6f 66 20 6d 61 70 | 70 65 72 20 69 73 20 31 |2 of map|per is 1|
|000062e0| 30 20 61 6e 64 20 74 68 | 65 20 6e 75 6d 62 65 72 |0 and th|e number|
|000062f0| 20 6f 66 20 63 68 61 72 | 73 20 6f 66 20 6c 69 6e | of char|s of lin|
|00006300| 65 20 78 20 2b 20 33 20 | 6f 66 20 6d 61 70 70 65 |e x + 3 |of mappe|
|00006310| 72 20 69 73 20 6e 6f 74 | 20 31 30 20 74 68 65 6e |r is not| 10 then|
|00006320| 0d 70 75 74 20 22 66 69 | 6e 64 20 73 74 72 69 6e |.put "fi|nd strin|
|00006330| 67 22 20 26 26 20 71 75 | 6f 74 65 20 26 20 6c 69 |g" && qu|ote & li|
|00006340| 6e 65 20 28 78 20 2b 20 | 32 29 20 6f 66 20 6d 61 |ne (x + |2) of ma|
|00006350| 70 70 65 72 20 26 20 6c | 69 6e 65 20 78 20 6f 66 |pper & l|ine x of|
|00006360| 20 6d 61 70 70 65 72 20 | 26 20 71 75 6f 74 65 20 | mapper |& quote |
|00006370| 26 26 20 22 69 6e 20 66 | 6c 64 20 42 6f 64 79 22 |&& "in f|ld Body"|
|00006380| 20 69 6e 74 6f 20 64 6f | 49 74 0d 64 6f 20 64 6f | into do|It.do do|
|00006390| 49 74 0d 69 66 20 74 68 | 65 20 72 65 73 75 6c 74 |It.if th|e result|
|000063a0| 20 69 73 20 65 6d 70 74 | 79 20 61 6e 64 20 74 68 | is empt|y and th|
|000063b0| 65 20 66 6f 75 6e 64 43 | 68 75 6e 6b 20 69 73 20 |e foundC|hunk is |
|000063c0| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 70 |not empt|y then.p|
|000063d0| 75 74 20 74 68 65 20 66 | 6f 75 6e 64 43 68 75 6e |ut the f|oundChun|
|000063e0| 6b 20 69 6e 74 6f 20 66 | 75 6c 6c 43 68 75 6e 6b |k into f|ullChunk|
|000063f0| 0d 61 64 64 20 31 30 20 | 74 6f 20 77 6f 72 64 20 |.add 10 |to word |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.